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.
image

• 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.
image

• Type aws iam detach-user-policy --user-name < username > --policy-arn < ARN > and press the return key to detach the policy from the user.
image

• Type aws iam delete-user --user-name < username > and press the return key to delete the user.
image

• Type aws iam list-users and press the return key and the user will no longer be there.
image

⚠️ **GitHub.com Fallback** ⚠️