(self, fieldname, text, searcher=None)
return self.delete_by_query(q, searcher=searcher)
Deletes any documents containing "term" in the "fieldname" field.
        This is useful when you have an indexed field containing a unique ID
        (such as "pathname") for each document.

        :returns: the number of documents deleted.
Deletes any documents containing "term" in the "fieldname" field.
        This is useful when you have an indexed field containing a unique ID
        (such as "pathname") for each document.
Deletes any documents containing term in the fieldname field . This is useful when you have an indexed field containing a unique ID ( such as pathname ) for each document .
def delete_by_term(self, fieldname, text, searcher=None):
        """Deletes any documents containing "term" in the "fieldname" field.
        This is useful when you have an indexed field containing a unique ID
        (such as "pathname") for each document.

        :returns: the number of documents deleted.
        """

        from whoosh.query import Term

        q = Term(fieldname, text)
        return self.delete_by_query(q, searcher=searcher)
def delete_by_term ( self , fieldname , text , searcher = None ) : from whoosh . query import Term q = Term ( fieldname , text ) return self . delete_by_query ( q , searcher = searcher )