How to remove a user from a group in Redshift database

Below is the command to remove a user from a group in Redshift database where username is the name of the user and groupname is the name of the group.

ALTER GROUP groupname DROP USER username;  
See also  How to send message to SQS queue from AWS CLI