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
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