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.
IndexFileDeleter Class | Lucene.Net.Index Namespace