Deleting a Managed Policy

You can delete a managed policy at any time if you no longer need it to control access to your resources.

This action removes the policy from your account. To remove the policy from the users or groups to which it is applied only without deleting it, see Detaching a Managed Policy from a User or a Group.

Deleting a Managed Policy Using Cockpit v2

Before you begin:

  1. Click inside the EIM Policies dashboard to make checkboxes appear.

  2. Check the box of the policy you want to delete.
    The policy is selected and an action menu appears.

  3. Click IconTerminate Delete.
    A confirmation dialog box appears.

  4. Click Delete.
    The policy is deleted.

Deleting a Managed Policy Using OSC CLI

See the DeletePolicy command sample in the documentation of the EIM API.

Deleting a Managed Policy Using AWS CLI

Before you begin:

To delete a managed policy, use the delete-policy command following this syntax:

Request sample
$ aws iam delete-policy \
    --profile YOUR_PROFILE \
    --policy-arn arn:aws:iam::123456789012:policy/MY_POLICY \

This command contains the following attributes that you need to specify:

  • (optional) profile: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI.

  • policy-arn: The OUTSCALE Resource Name (ORN) of the policy you want to delete.

  • endpoint: The endpoint corresponding to the Region you want to send the request to.

The specified managed policy is deleted.

Related Pages

Corresponding API Method

AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.