public boolean delete(String user, String filename) throws Exception
	{
		// Need to check if the user trying to delete is the owner, admin, or manager
		boolean ok = false;
		if(!exists(filename)) {
			System.out.println("File does not exist, please try again.");
			return false; // Can't modify what isn't there. 
		}
		try {
			Class.forName("com.mysql.jdbc.Driver");
			// setup the connection with the DB.
			Connection connect = DriverManager
					.getConnection("jdbc:mysql://localhost/feedback?"
							+ "user=sqluser&password=assword");
			PreparedStatement preparedStatement = connect
					.prepareStatement("select name, owner_id from FEEDBACK.files;");
			ResultSet rs = preparedStatement.executeQuery();
			while(rs.next()) {
				int o_id = rs.getInt("owner_id"); // get file owner's id from file table
				int file_owner = fetchID(user); // get owner's id from main table

				// If the id's match, then the file can be modified or if the user is an admin
				String temp = fetchRole(user); 
				if(o_id == file_owner || temp.equals("Admin") || temp.equals("Manager"))
				{
					Connection update = DriverManager
							.getConnection("jdbc:mysql://localhost/feedback?"
									+ "user=sqluser&password=assword");
					PreparedStatement psUpdate = update.prepareStatement("delete from files where name=? ; ");
					psUpdate.setString(1, filename);
					psUpdate.executeUpdate();
					ok = true;
				}
				else 
				{
					System.out.println("Sorry, you do not have permission to delete " + filename); 
					return false;
				}
			}
		} catch (Exception e) {
			throw e;
		}

		return ok; 
	}