We would not be able to delete all the tickets automatically in the helpdesk,however if you filter out all the tickets from the helpdesk, you can perform API operations to delete those tickets. You can find information on the API to delete a ticket in the below link:

https://api.freshservice.com/v2/#delete_a_ticket