code: def remove_user(self, name, session=None):
          
          warnings.warn("remove_user is deprecated and will be removed in "
                        "PyMongo 4.0. Use db.command with dropUser "
                        "instead", DeprecationWarning, stacklevel=2)
          cmd = SON([("dropUser", name)])
          # Don't send {} as writeConcern.
          if self.write_concern.acknowledged and self.write_concern.document:
              cmd["writeConcern"] = self.write_concern.document
          self.command(cmd, session=session)
docs: **DEPRECATED**: Remove user `name` from this :class:`Database`.
  
          User `name` will no longer have permissions to access this
          :class:`Database`.
  
          .. note:: remove_user is deprecated and will be removed in PyMongo
            4.0. Use the dropUser command instead::
  
              db.command("dropUser", "user")
  
          :Parameters:
            - `name`: the name of the user to remove
            - `session` (optional): a
              :class:`~pymongo.client_session.ClientSession`.
  
          .. versionchanged:: 3.6
             Added ``session`` parameter. Deprecated remove_user.