Delete User with AWS CLI on Mac - VicPhanDevOps/mac GitHub Wiki
• Type aws iam list-users
and press the return key to list the users.
•
• Type aws iam list-attached-user-policies --user-name < username >
and press the return key to list the attached policies for the user you wish to delete.
•
• Type aws iam detach-user-policy --user-name < username > --policy-arn < ARN >
and press the return key to detach the policy from the user.
•
• Type aws iam delete-user --user-name < username >
and press the return key to delete the user.
•
• Type aws iam list-users
and press the return key and the user will no longer be there.
•