// Create a collection manager instance for the collection
CollectionManager colman = (CollectionManager) col.getService("CollectionManager", XMLDBAPIVERSION);
if (table.get(XMLTools.NAME_OF) != null) {
colman.dropIndexer((String) table.get(XMLTools.NAME_OF));
System.out.println("DELETED: " + (String) table.get(XMLTools.NAME_OF));
} else {
System.out.println("ERROR : Name switch and Indexer name required");
}
} else