protected void closeDiskStores() {
    if (cache != null) {
      ((GemFireCacheImpl) cache).closeDiskStores();
    }
  }
cleans all the directory of all the files present in them
geode-junit/src/main/java/org/apache/geode/internal/cache/DiskRegionTestingBase.java