private void DeleteHTTPProxyDBDataButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_DeleteHTTPProxyDBDataButtonActionPerformed
    Connection conn = null;
    PreparedStatement ps = null;
    MySQLPacket.DeleteMySQLListenerDBData(JavaDBAccess);
    try {
        if ((conn = this.JavaDBAccess.setConn()) != null) {
            System.out.println("Connected to database " + JavaDBAccess.getDatabaseName());
        } else {
            throw new Exception("Not connected to database " + JavaDBAccess.getDatabaseName());
        }

        conn.setAutoCommit(false);

        // Start a transaction by inserting a record in the TARGET_PHP_FILES_FUNCTIONS table
        ps = conn.prepareStatement("DELETE FROM TARGET_PHP_FILES_RUNS_FUNCTIONS_VARIABLES");
        ps.executeUpdate();
        ps = conn.prepareStatement("DELETE FROM TARGET_PHP_FILES_RUNS_FUNCTIONS");
        ps.executeUpdate();
        ps.close();
        conn.commit();
        conn.close();
    } catch (Throwable e) {
        System.out.println("exception thrown:");

        if (e instanceof SQLException) {
            JavaDBAccess.printSQLError((SQLException) e);
        } else {
            e.printStackTrace();
        }
    }
}