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 list all the tables of a schema in Redshift