public void RemoveIndex(string name)
{
var fixedName = FixupIndexName(name);
AbstractViewGenerator ignoredViewGenerator;
indexCache.TryRemove(fixedName, out ignoredViewGenerator);
IndexDefinition ignoredIndexDefinition;
indexDefinitions.TryRemove(fixedName, out ignoredIndexDefinition);
newDefinitionsThisSession.TryRemove(fixedName, out ignoredIndexDefinition);
if (configuration.RunInMemory)
return;
File.Delete(GetIndexSourcePath(fixedName) + ".index");
}