code: def remove_message(self, message, afterwards=None):
          
          if self.ro:
              raise DatabaseROError()
          path = message.get_filename()
          self.writequeue.append(('remove', afterwards, path))
docs: Remove a message from the notmuch index
  
          :param message: message to remove
          :type message: :class:`Message`
          :param afterwards: callback to trigger after removing
          :type afterwards: callable or None