DataUpdateManager { public void deleteCollection(String collection) throws Exception { File collectionDir = new File(rootDir, collection); if (!collectionDir.isAbsolute()) { throw new IllegalArgumentException("Collection dir cannot be relative " + collectionDir); } FileUtils.forceDelete(collectionDir); } DataUpdateManager(File rootDir, boolean autoExpire); void deleteCollection(String collection); void deleteData(String collection,
                         String schedule,
                         DateTime minTime,
                         DateTime maxTime); void deleteData(String collection, String schedule, DateTime maxTime); void updateData(String collection,
                         String schedule,
                         DateTime minTime,
                         DateTime maxTime,
                         byte[] data); void updateData(String collection,
                         String schedule,
                         DateTime minTime,
                         DateTime maxTime,
                         InputStream data); void expireSegments(File collectionDir, DateTime minTime, DateTime maxTime, String schedule); void persistTree(String collection,
                          String schedule,
                          DateTime minTime,
                          DateTime maxTime,
                          final StarTree starTree); StarTree mergeTrees(Collection<StarTree> starTrees);  }
@Test public void testDeleteCollection() throws Exception { File collectionDir = new File(rootDir, collection); FileUtils.forceMkdir(collectionDir); Assert.assertTrue(collectionDir.exists()); dataUpdateManager.deleteCollection(collection); Assert.assertFalse(collectionDir.exists()); }