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 change EC2 Instance to an ENA supported Instance type