# Delete a security policy Type of document: How-to guide Product: NGINX Instance Manager > Remove an existing F5 WAF for NGINX security policy using the F5 NGINX Instance Manager web interface or REST API. --- You can delete a security policy using either the F5 NGINX Instance Manager web interface or the REST API. --- #### Web interface To delete a policy in the web interface: 1. Log in to NGINX Instance Manager. 1. From the Launchpad, select **NGINX Instance Manager**. 1. In the left menu, select **WAF > Policies**. 1. On the **Security Policies** page, locate the policy you want to delete. 1. Select the **Actions** menu (**...**) and choose **Delete**. #### API 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:///api/platform/v1/security/policies \ -H "Authorization: Bearer " ``` 1. Use the policy UID in a `DELETE` request: | Method | Endpoint | |--------|------------------------------------------------------------| | DELETE | `/api/platform/v1/security/policies/{policy-uid}` | **Example:** ```shell curl -X DELETE https:///api/platform/v1/security/policies/ \ -H "Authorization: Bearer " ```