deleteGroupPolicy

Deletes the specified inline policy that is embedded in the specified IAM group.

A group can also have managed policies attached to it. To detach a managed policy from a group, use DetachGroupPolicy. For more information about policies, refer to Managed policies and inline policies in the IAM User Guide.

Samples


fun main() { 
   //sampleStart 
   // The following command deletes the policy named ExamplePolicy from the group named Admins
iamClient.deleteGroupPolicy {
    groupName = "Admins"
    policyName = "ExamplePolicy"
} 
   //sampleEnd
}