aws iam delete-group-policy
Deletes the specified inline policy that is embedded in the specified IAM group. AWS CLI reference
1 example 2 options Its page in the AWS CLI reference
Examples
To delete a policy from an IAM group
The following delete-group-policy example deletes the policy named ExamplePolicy from the group named Admins.
aws iam delete-group-policy --group-name Admins --policy-name ExamplePolicyIdentify--group-nameThe name (friendly name, not ARN) identifying the group that the policy is embedded in.--policy-nameThe name identifying the policy document to delete.This command produces no output.
To see the policies attached to a group, use the list-group-policies command.
For more information, see Managing IAM policies in the AWS IAM User Guide.
Options
--group-nameThe name (friendly name, not ARN) identifying the group that the policy is embedded in.--policy-nameThe name identifying the policy document to delete.