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

@param pathToDb Path to onyx database