code: def _RemoveAuthorizedKeys(self, user):
      
      pw_entry = self._GetUser(user)
      if not pw_entry:
        return
  
      home_dir = pw_entry.pw_dir
      authorized_keys_file = os.path.join(home_dir, '.ssh', 'authorized_keys')
      if os.path.exists(authorized_keys_file):
        try:
          os.remove(authorized_keys_file)
        except OSError as e:
          message = 'Could not remove authorized keys for user %s. %s.'
          self.logger.warning(message, user, str(e))
docs: Remove a Linux user account's authorized keys file to prevent login.
  
      Args:
        user: string, the Linux user account to remove access.