public static <R extends Record> int deleteById(final DataSource dataSource,
                                                    final Table<R> table,
                                                    final Field<Integer> field,
                                                    final int id) {

        return contextResult(dataSource, context ->
                context
                        .deleteFrom(table)
                        .where(field.eq(id))
                        .execute());
    }
Delete all rows matching the passed id value

@param field The field to match id against
@param id    The id value to match on
@return The number of deleted records
stroom-db-util/src/main/java/stroom/db/util/JooqUtil.java