DotLucene 1.4 API Documentation |

# IndexReader.Delete Method (Term)

Deletes all documents containing `term`. This is useful if one uses a document Field to hold a unique ID string for the document. Then to delete such a document, one merely constructs a term with the appropriate Field and the unique ID string as its text and passes it to this method. Returns the number of documents deleted.

public int Delete(
Term term
);

#### See Also

IndexReader Class | Lucene.Net.Index Namespace | IndexReader.Delete Overload List