private void DeleteIndexFilesFor(IndexProviderDescriptor descriptor) { File databaseDirectory = this._databaseLayout.databaseDirectory(); File rootDirectory = subProviderDirectoryStructure(databaseDirectory).forProvider(descriptor).rootDirectory(); File[] files = _fs.listFiles(rootDirectory); foreach (File indexFile in files) { _fs.deleteFile(indexFile); } }