That code snippet has to do with deleted posts, not PMs.
PMs are deleted from the database when the sender and all recipients delete it. If this doesn't happen, then it's not deleted. There is no expiration. PMs can also end up stored long-term in the forum's periodic database backups.
On this forum, topics and replies are never truly deleted, and edits are also logged.