code: private void wipe(String dbfile) {
      File file = new File(dbfile);
      File dir = file.getParentFile();
      if (dir == null)
        return; // means directory doesn't exist. make error message elsewhere
      for (File f : dir.listFiles())
        if (f.getName().startsWith(file.getName()))
          f.delete();
    }
docs: workaround https://github.com/jankotek/MapDB/issues/270