# Data protection - automatic ticket deletion

**URL:** <https://community.hubspot.com/t/data-protection-automatic-ticket-deletion/102779>\
**Category:** Tickets & Conversations\
**Tags:** help-desk\
**Created:** [March 18, 2024, 9:22am UTC](https://community.hubspot.com/t/data-protection-automatic-ticket-deletion/102779 "2024-03-18T09:22:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![PPuri8](https://avatars.discourse-cdn.com/v4/letter/p/d26b3c/32.png) [@PPuri8](https://community.hubspot.com/u/PPuri8)\
**Post date:** [March 18, 2024, 9:22am UTC](https://community.hubspot.com/t/data-protection-automatic-ticket-deletion/102779/1 "2024-03-18T09:22:36Z")

</div>

Hello,

Under GDPR (and other data protection laws), we’re required to delete customer data once the purpose for recording it has been fulfilled. I assume that all companies using Hubspot have this requirement to delete data after x years. We’re able to set up deletion of contacts and companies, but not tickets. Has anyone found a way to do this in order to comply with these laws?

Thanks!

---

<div class="post-metadata">

**Author:** ![karstenkoehler](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/karstenkoehler/32/68554_2.png) [@karstenkoehler](https://community.hubspot.com/u/karstenkoehler)\
**Post date:** [March 18, 2024, 9:26am UTC](https://community.hubspot.com/t/data-protection-automatic-ticket-deletion/102779/2 "2024-03-18T09:26:10Z")

</div>

Hi @PPuri8,

This is unfortunately not possible at this stage. However, other users have requested this before: [https://community.hubspot.com/t5/HubSpot-Ideas/Delete-tickets-in-Ticket-workflow/idi-p/501877](https://community.hubspot.com/t5/HubSpot-Ideas/Delete-tickets-in-Ticket-workflow/idi-p/501877)

These requests submitted to the HubSpot Ideas section of the community are reviewed by the HubSpot product team, based on their popularity and the assumed demand. I’d recommend commenting and upvoting.

You can also help other HubSpot users find this request more easily (and drive traction) by accepting my reply as a solution. I’d appreciate it, too.

For now, you would have to work with saved filtered views on the ticket index page and manually delete records on a regular basis.

Have a great day!

---

<div class="post-metadata">

**Author:** ![TRaymondRoto](https://avatars.discourse-cdn.com/v4/letter/t/a88e57/32.png) [@TRaymondRoto](https://community.hubspot.com/u/TRaymondRoto)\
**Post date:** [April 27, 2024, 5:54am UTC](https://community.hubspot.com/t/data-protection-automatic-ticket-deletion/102779/3 "2024-04-27T05:54:27Z")

</div>

Somehow, I think this is incorrect. I just went in and deleted a contact (perminant delete) and the ticket associated with the contact is no longer there (it was deleted as well). In my case, I want to keep the ticket but get rid of the contact. In my example, the ticket was created through an email in to the helpdesk. That in turn created the contact. The email was spam and we set a property on the ticket indicating it is spam. I then have created a list of contacts that are associated to a ticket marked as spam. The idea was I’d be able to delete these unneeded contacts from our database. However I want to keep the ticket because our customer support rep did some measure of work identifying the ticket as spam and disposing of it. I want the ticket to remain so we can keep track of how many of these types of tickets they are dealing with.  
This behaivors seems contrary to your comment here.

---

<div class="post-metadata">

**Author:** ![TRaymondRoto](https://avatars.discourse-cdn.com/v4/letter/t/a88e57/32.png) [@TRaymondRoto](https://community.hubspot.com/u/TRaymondRoto)\
**Post date:** [April 27, 2024, 5:59am UTC](https://community.hubspot.com/t/data-protection-automatic-ticket-deletion/102779/4 "2024-04-27T05:59:25Z")

</div>

One additional comment. I even tried removing the association to the ticket from the contact record. Deleted the contact. THE TICKET WAS STILL DELETED even though it was no longer associated with it! What am I missing?

---

<div class="post-metadata">

**Author:** ![PPuri8](https://avatars.discourse-cdn.com/v4/letter/p/d26b3c/32.png) [@PPuri8](https://community.hubspot.com/u/PPuri8)\
**Post date:** [June 24, 2024, 10:52am UTC](https://community.hubspot.com/t/data-protection-automatic-ticket-deletion/102779/5 "2024-06-24T10:52:21Z")

</div>

Hello,

If you do restorable delete then the ticket won’t be removed.

In my situation, we don’t want to use permanent.

I’m unsure why the ticket is permanently delete if the association is removed though.

---

<div class="post-metadata">

**Author:** ![PPuri8](https://avatars.discourse-cdn.com/v4/letter/p/d26b3c/32.png) [@PPuri8](https://community.hubspot.com/u/PPuri8)\
**Post date:** [March 18, 2024, 11:37am UTC](https://community.hubspot.com/t/data-protection-automatic-ticket-deletion/102779/6 "2024-03-18T11:37:33Z")

</div>

Thanks for your answer. Do you know if tickets can be automatically deleted if the contact or company it’s associated with is deleted?

---

<div class="post-metadata">

**Author:** ![karstenkoehler](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/karstenkoehler/32/68554_2.png) [@karstenkoehler](https://community.hubspot.com/u/karstenkoehler)\
**Post date:** [March 18, 2024, 11:39am UTC](https://community.hubspot.com/t/data-protection-automatic-ticket-deletion/102779/7 "2024-03-18T11:39:18Z")

</div>

@PPuri8 not without custom code and developing a solution based on the HubSpot API, no.
