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.
Click inside the EIM Policies dashboard to make checkboxes appear.
Check the box of the policy you want to delete.
The policy is selected and an action menu appears.
A confirmation dialog box appears.
The policy is deleted.
To delete a managed policy, use the delete-policy command following this syntax:
$ 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:
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.
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.