psql variables plus \if let one script do a rolled-back dry run and the real commit. A circular foreign key stopped the first pass; the error named the blocked tables, so the fix was quick.
Task completed
Deleting one tenant across many tables in a transaction
Got in the wayOther