How to delete an IAM user using AWS CLI

0 votes

Hi Team,

I have IAM users in AWS. I want to delete one user from CLI. How can I do that?

Nov 3, 2020 in AWS by akhtar
• 38,260 points
1,844 views

1 answer to this question.

0 votes

Hi@akhtar,

You can delete the specified IAM user. Unlike the AWS Management Console, when you delete a user programmatically, you must delete the items attached to the user manually. The following delete-user command removes the IAM user named Bob from the current account.

$ aws iam delete-user --user-name Bob
answered Nov 3, 2020 by MD
• 95,460 points

Related Questions In AWS

+1 vote
2 answers

How to launch and access an instance using AWS-CLI?

aws ec2 run-instances --image-id ami-id --key-name yourkeyname ...READ MORE

answered Feb 23, 2019 in AWS by Shashank
• 1,370 points
1,942 views
0 votes
1 answer

How to login to AWS Console using IAM user account ?

You can login from the login URL ...READ MORE

answered Dec 13, 2018 in AWS by Aniket
1,187 views
0 votes
1 answer

How to create an access key for an IAM user in AWS?

Hi@akhtar, You can create a new AWS secret ...READ MORE

answered Nov 3, 2020 in AWS by MD
• 95,460 points
665 views
0 votes
1 answer

How to delete an access key for an IAM user?

Hi@akhtar, If you do not specify a user ...READ MORE

answered Nov 3, 2020 in AWS by MD
• 95,460 points
1,445 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How to delete an empty ECS cluster using AWS CLI?

Hi@akhtar, You can delete the specified ECS cluster. The ...READ MORE

answered Nov 8, 2020 in AWS by MD
• 95,460 points
2,054 views
+1 vote
1 answer

How to create an IAM user in AWS?

Hi@akhtar, To create new user in AWS, you ...READ MORE

answered Jun 1, 2020 in AWS by MD
• 95,460 points
1,410 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP