public <R extends Record> int deleteById(final Table<R> table,
                                             final Field<Integer> field,
                                             final int id) {
        return contextResult(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/JooqHelper.java