Hi, I have a java program that creates a sqlite database for me. When I finish the program, I want the database to be deleted so that there is no record of it on the computer. I have the following code:
public void borrarSQLite() {
try {
con.getS().executeUpdate("DROP DATABASE peval2");
System.out.println("BD SQLite eliminada correctamente");
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
System.err.println("ERROR AL ELIMINAR LA BD SQLite");
}
}
I have tried to execute the query directly in SQLite and it tells me the following:
near "DATABASE": syntax error: drop DATABASE