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:

  1. Log in to NGINX Instance Manager.
  2. From the Launchpad, select Instance Manager.
  3. In the left menu, select WAF > Policies.
  4. On the Security Policies page, locate the policy you want to delete.
  5. Select the Actions menu () and choose Delete.

To delete a policy using the REST API:

  1. Retrieve the policy’s UID by sending a GET request to the Security Policies endpoint:

    shell
    curl -X GET https://<NIM_FQDN>/api/platform/v1/security/policies \
      -H "Authorization: Bearer <access token>"
  2. Use the policy UID in a DELETE request:

Method Endpoint
DELETE /api/platform/v1/security/policies/{policy-uid}

Example:

shell
curl -X DELETE https://<NIM_FQDN>/api/platform/v1/security/policies/<policy-uid> \
  -H "Authorization: Bearer <access token>"