public void DeleteVulnerabilityFiles(DatabaseAccess JavaDBAccess, String TargetPHPFileSelectedComboBox) {

        int TARGET_PHP_FILES_ID = 0;
        PreparedStatement ps = null;
        Connection conn = null;

        try {
            if ((conn = 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 table
            ps = conn.prepareStatement("SELECT ID FROM TARGET_PHP_FILES WHERE PATH = ?");
            ps.setString(1, TargetPHPFileSelectedComboBox);
            ResultSet rs = ps.executeQuery();

            rs.next();
            TARGET_PHP_FILES_ID = rs.getInt(1);
            rs.close();

            // Start a transaction by inserting a record in the TARGET_PHP_FILES table
            ps = conn.prepareStatement("SELECT ID FROM RESULTS WHERE TARGET_PHP_FILE = ?");
            ps.setInt(1, TARGET_PHP_FILES_ID);
            rs = ps.executeQuery();

            while (rs.next()) {
                // Open matches log file.
                try {

                    boolean success = (new File(TargetPHPFileSelectedComboBox + "_" + rs.getRow() + ".php")).delete();
                    if (!success) {
                        System.out.println("Expected file " + TargetPHPFileSelectedComboBox + "_" + rs.getRow() + ".php" + " does not exist!");
                    }

                } catch (Exception e) {
                    System.out.println("Unable to open matches Web Page log file.");
                }
            }
            rs.close();
            conn.commit();
            conn.close();

        } catch (Throwable e) {
            System.out.println("Errors in DeleteVulnerabilityFiles!");
            System.out.println("exception thrown:");

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

    }