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 owner of a Procedure in Redshift database