code: def RemoveUser(self, user):
      
      self.logger.info('Removing user %s.', user)
      if self.remove:
        command = self.userdel_cmd.format(user=user)
        try:
          subprocess.check_call(command.split(' '))
        except subprocess.CalledProcessError as e:
          self.logger.warning('Could not remove user %s. %s.', user, str(e))
        else:
          self.logger.info('Removed user account %s.', user)
      self._RemoveAuthorizedKeys(user)
      self._UpdateSudoer(user, sudoer=False)
docs: Remove a Linux user account.
  
      Args:
        user: string, the Linux user account to remove.