How to delete an IAM user

Below is the command to delete an IAM user using AWS command line where username is the name of the user that needs to be deleted.

aws iam delete-user --user-name username

See also  How to access S3 from EC2 Instance using IAM role