Issue #23070:correctly handle wotc when deleting closed wo

An example of how

https://github.com/xtuple/database/pull/158/files

would get done the new way.