/** * Cleanup the existing instance. * * @param providerName The name of the provider */ public static synchronized void removeInstance(String providerName) { LUCENE_SEARCH_PROVIDERS.remove(providerName); Utils.deleteFiles(getProviderPath(providerName)); }