> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nx1cloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete a policy

> Permanently delete a Ranger policy from the NexusOne portal.

Delete a policy to remove it from Ranger. Everything the policy granted or restricted stops applying.

> [!WARNING]
>
> Deleting a policy is permanent. To remove only one role from a policy,
> [edit the policy](https://docs.nx1cloud.com/documentation/govern/tasks/data-access/ranger-policy/edit-a-policy.md) instead.

## Prerequisites

Before starting this task, ensure you have the following:

Required roles: `nx1_migration_admin` or `nx1_migration_ops`.

## Delete a policy

> [tab] Web portal
>
> Perform these steps to delete a policy.
>
> 1. Log in to NexusOne.
> 2. On the top navigation bar, hover your mouse over **Govern** and then select **Data Access**.
> 3. Click the **All policies** tab.
> 4. In the **Search policies by name** field, enter the policy name.
> 5. Click the trash icon on the policy's row.
> 6. Click **Delete**.
> 7. To confirm the deletion, click **Delete** again.

> [tab] REST API
>
> Use the following API endpoint to
> [delete a Ranger policy](https://docs.nx1cloud.com/api-reference/endpoints/policy-management/delete-a-ranger-policy.md).

## Additional resources

For an overview of the Govern feature, refer to [Govern Overview](https://docs.nx1cloud.com/documentation/govern/overview.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.