How to remove an IAM user from a group

To remove an IAM user from an IAM group, use the below command where username is the name of the user and TeamA is the name of the group.

aws iam remove-user-from-group --user-name username --group-name TeamA
See also  How to Change the password of an IAM user