code: public static int delete(Connection connection, String table, String where,
  			String[] args) {
  		StringBuilder delete = new StringBuilder();
  		delete.append("delete from ").append(CoreSQLUtils.quoteWrap(table));
  		if (where != null) {
  			delete.append(" where ").append(where);
  		}
  		String sql = delete.toString();
  
  		PreparedStatement statement = null;
  
  		int count = 0;
  		try {
  			statement = connection.prepareStatement(sql);
  			setArguments(statement, args);
  			count = statement.executeUpdate();
  		} catch (SQLException e) {
  			throw new GeoPackageException(
  					"Failed to execute SQL delete statement: " + sql, e);
  		} finally {
  			closeStatement(statement, sql);
  		}
  
  		return count;
  	}
docs: Execute a deletion
  
  @param connection
  connection
  @param table
  table name
  @param where
  where clause
  @param args
  where arguments
  @return deleted count