remove secondary group from user linux code example Example: remove group linux sudo groupdel [GROUP_NAME]