deleteUserPolicy

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

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

Samples


fun main() { 
   //sampleStart 
   // The following delete user policy command removes the specified policy from the IAM user named Juan
iamClient.deleteUserPolicy {
    userName = "Juan"
    policyName = "ExamplePolicy"
} 
   //sampleEnd
}