The task Helpdesk Pro - Delete Old Tickets permanently deletes tickets whose last activity is older than your retention period, together with their comments and attachment files. The default is 4 years, up to 20 tickets per run.
It applies to every status, including open tickets, and deletion cannot be undone. Back up your database and files first.