Here you can find the source of deleteDatabaseH2()
public static void deleteDatabaseH2() throws SQLException
//package com.java2s; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.sql.Statement; public class Main { public static final String JDBC_URL = "jdbc:sqlite:C:/Users/timothyi/mta/database/development.sqlite3"; public static void deleteDatabaseH2() throws SQLException { Connection conn = DriverManager.getConnection(JDBC_URL, "sa", ""); Statement stmt = conn.createStatement(); try {// w w w . jav a 2 s.c om stmt.execute("DROP ALL OBJECTS DELETE FILES"); // stmt.execute("SHUTDOWN"); TODO: db files get removed if this line // is uncommented } finally { stmt.close(); conn.close(); } } }