Delete a security policy
You can delete a security policy using either the NGINX Instance Manager web interface or the REST API.
To delete a policy in the web interface:
- In your browser, go to the FQDN for your NGINX Instance Manager host and log in.
- From the Launchpad, select Instance Manager.
- In the left menu, select WAF > Policies.
- On the Security Policies page, locate the policy you want to delete.
- Select the Actions menu (…) and choose Delete.
To delete a policy using the REST API:
-
Retrieve the policy’s UID by sending a
GETrequest to the Security Policies endpoint:shell curl -X GET https://{{NIM_FQDN}}/api/platform/v1/security/policies \ -H "Authorization: Bearer <access token>" -
Use the policy UID in a
DELETErequest:
| Method | Endpoint |
|---|---|
| DELETE | /api/platform/v1/security/policies/{policy-uid} |
Example:
curl -X DELETE https://{{NIM_FQDN}}/api/platform/v1/security/policies/<policy-uid> \
-H "Authorization: Bearer <access token>"