I like to have a trash forum at my site so here's how to do it:
1. Set up a Trash Forum, don't forget to untick "Allow new messages to be posted in this forum".
2. In library\XenForo\Model\Thread.php and In library\XenForo\Model\InlineMod\Thread.php change: