A ticket will remain in the trash folder inside Freshdesk for 30 days and post which it will be permanently deleted automatically from the database. Once a ticket is deleted from the trash folder manually or automatically there is no option to restore the ticket.