Raven.Database.Storage.IndexDefinitionStorage.RemoveIndex C# (CSharp) Method

RemoveIndex() public method

public RemoveIndex ( string name ) : void
name string
return void
        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");
        }