code: def remove_named_query(self, alias, afterwards=None):
          
          if self.ro:
              raise DatabaseROError()
          self.writequeue.append(('setconfig', afterwards, 'query.' + alias, ''))
docs: remove a named query from the notmuch database.
  
          :param alias: name of shortcut
          :type alias: str
          :param afterwards: callback to trigger after adding the alias
          :type afterwards: callable or None