Apache Lucene.Net 2.4.0 Class Library API

IndexFileDeleter Constructor 

Initialize the deleter: find all previous commits in the Directory, incref the files they reference, call the policy to let it delete commits. The incoming segmentInfos must have been loaded from a commit point and not yet modified. This will remove any files not referenced by any of the commits.

public IndexFileDeleter(
   Directory directory,
   IndexDeletionPolicy policy,
   SegmentInfos segmentInfos,
   TextWriter infoStream,
   DocumentsWriter docWriter
);

See Also

IndexFileDeleter Class | Lucene.Net.Index Namespace