@jwalgran I wrote this, it was ported over from the addons repo.
This is excluding all models which don't have any data for this particular UDF, as we don't need to do a delete on them.  It was pretty clear to me when I wrote it, but perhaps has become a little cryptic even to myself since then.

Perhaps changing `objects` to `objects_with_udf_data` would make things clearer?