The task Helpdesk Pro - Delete Old Attachments permanently deletes attachment files that were last modified before a limit you choose. The default is 4 years; you can switch the unit to days, for example 90.
Tickets and comments are kept, and an old attachment can still be listed even though its file is gone. Back up the attachment folder before enabling the task.