Skip to main content
mvlasak
Staff
Staff
June 3, 2025

Troubleshooting Tip: How to delete policy package folder that contains a forward slash (/) in its name On FortiManager 7.6.3

  • June 3, 2025
  • 0 replies
  • 519 views
Description

This article describes how to resolve issues where the FortiManager GUI does not allow the user to delete a policy package folder that contains a forward slash (/) in its name. Such names may cause unexpected behavior, including the inability to view, rename, move, or delete the affected item via the GUI or API.

Scope FortiManager v7.6.3.
Solution

When a user creates a folder in Policy & Objects -> Policy Packages with a name that includes a forward slash ('/').

For example, 'test/test': there is a known issue in v 7.6.3 where the GUI does not allow the user to delete the policy package folder. An error message is displayed: 'cannot get pkg path'.

 

Workaround:

As a workaround, it is possible to delete the policy package folder using the FortiManager JSON API instead of the GUI:


JSON API REQUEST policy package name: "test/test"

{{pp_name}}="test\\/test" and {{adom}}=root

 

Note:

Two backslashes '\\' have to be added before every forward slash in the policy package name '/', otherwise an Error will occur that the URL is invalid when posting the API Call 

{
    "method": "delete",
    "params": [
        {
            "url": "/pm/pkg/adom/{{adom}}/{{pp_name}}"
        }
    ],
    "session": "{{session}}",
    "verbose": 1,
    "id": 1
}

RESPONSE pp_name="test\\/test"
{
    "result": [
        {
            "status": {
                "code": 0,
                "message": "OK"
            },
            "url": "/pm/pkg/adom/root/test\\/test"
        }
    ],
    "id": 1
}

 

Important note:

The issue is fixed in FortiManager v7.6.4 and later. FortiManager 7.4 is not affected.

Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!