code: def remove(self, safe=None):
          
          self._session.remove(self, safe=None)
          self._session.flush()
docs: Removes the document itself from database.
  
          The optional ``safe`` argument is a boolean that specifies if the
          remove method should wait for the operation to complete.