code: private static void deleteDatabase(String pathToDb)
      {
          File database = new File(pathToDb);
          if (database.exists()) {
              delete(database);
          }
          database.delete();
      }
docs: Delete a database so you have a clean slate prior to testing
  
  @param pathToDb Path to onyx database