code: @SuppressWarnings("ResultOfMethodCallIgnored")
      static private void deleteDirectory(File path) {
          if (path.exists()) {
              //noinspection ConstantConditions
              for (File f : path.listFiles()) {
                  if (f.isDirectory()) {
                      deleteDirectory(f);
                  }
                  f.delete();
              }
              path.delete();
          }
      }
docs: Helper method for deleting the database directory
  @param path Directory path of database