This topic describes how to delete a custom policy. If permissions in a custom policy change or you no longer need the custom policy, you can delete the custom policy.
Procedure
Log on to the Resource Access Management (RAM) console as a RAM user who has administrative rights.
In the left-side navigation pane, choose .
On the Policies page, find the custom policy that you want to delete and click Delete Policy in the Actions column.
In the Delete Policy dialog box, read the deletion description, enter the name of the policy for confirmation, and then click Delete Policy.
When you delete a policy, all the versions of the policy are deleted. If the policy is attached to any RAM user, RAM user group, or RAM role, the permissions are also revoked. Proceed with caution.