CmdID

CmdID / aws / aws iam

aws iam delete-role-policy

Deletes the specified inline policy that is embedded in the specified IAM role. AWS CLI reference

1 example 2 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To remove a policy from an IAM role

The following delete-role-policy example removes the policy named ExamplePolicy from the role named Test-Role.

aws iam delete-role-policy --role-name Test-Role --policy-name ExamplePolicyIdentify
--role-nameThe name (friendly name, not ARN) identifying the role that the policy is embedded in.
--policy-nameThe name of the inline policy to delete from the specified IAM role.

This command produces no output.

For more information, see IAM role management in the AWS IAM User Guide.

Options

2 in the AWS CLI reference
--policy-nameThe name of the inline policy to delete from the specified IAM role.
--role-nameThe name (friendly name, not ARN) identifying the role that the policy is embedded in.