Row deletion operation on pg table with numerous foreign keys
Create an SQL that does the same as the ON DELETE CASCADE would do. Remove the rows from the corresponding ~50 tables in the right order before you remove the users. This is some work but it keeps your data safe from an application error that does an accidental remove of a user with (lots of) messages.