Updated on 2026-09-23 GMT+08:00

Modifying or Deleting a Custom Policy

To maintain a secure account environment, you must periodically review your custom policies to modify any that pose security risks and promptly delete those that are no longer needed. You can modify or delete custom policies as needed.

Modifying a Custom Policy

Modify the name, description, or content of a custom policy.
  1. In the left navigation pane on the IAM console, choose Permissions > Policies/Roles.
  2. Locate the custom policy you want to modify and click Modify in the Operation column, or click the custom policy name to go to the policy details page.
    Figure 1 Modifying a custom policy
  3. Modify the name or description of the policy as required.
  4. Modify the policy content by following the instructions provided in Creating a Custom Policy in the Visual Editor as required.
  5. Click OK to save the modifications.

Deleting a Custom Policy

Only custom policies that are not attached to any user groups or agencies can be deleted. If a custom policy has been attached to certain user groups or agencies, detach the policy and then delete it.

  1. In the left navigation pane on the IAM console, choose Permissions > Policies/Roles.
  2. In the row containing the custom policy you want to delete, click Delete.
    Figure 2 Deleting a custom policy
  3. Click OK.

    Search for the policy in the search box and verify the deletion.