# GDPR - Delete contact with API

**URL:** <https://community.hubspot.com/t/gdpr-delete-contact-with-api/18950>\
**Category:** APIs & Integrations\
**Created:** [February 21, 2020, 10:29am UTC](https://community.hubspot.com/t/gdpr-delete-contact-with-api/18950 "2020-02-21T10:29:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TristanC](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tristanc/32/61905_2.png) [@TristanC](https://community.hubspot.com/u/TristanC)\
**Post date:** [February 21, 2020, 10:29am UTC](https://community.hubspot.com/t/gdpr-delete-contact-with-api/18950/1 "2020-02-21T10:29:15Z")

</div>

Hi, I would like to be able to delete a contact ‘GDPR-style’ with an API call. But it seems that the delete contact endpoint is only a classic delete.

Is there a way to choose how to delete a contact ?

Thanks,

---

<div class="post-metadata">

**Author:** ![Willson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/willson/32/84663_2.png) [@Willson](https://community.hubspot.com/u/Willson)\
**Post date:** [February 21, 2020, 3:16pm UTC](https://community.hubspot.com/t/gdpr-delete-contact-with-api/18950/2 "2020-02-21T15:16:48Z")

</div>

Hi @TristanC

I can confirm that this is currently not functionality we support via the API. This is however, listed as an idea on our Ideas Forum, [here](https://community.hubspot.com/t5/HubSpot-Ideas/GDPR-deletion-via-API-call/idi-p/201590).

I’d recommend heading over to up-vote this idea! Thanks

---

<div class="post-metadata">

**Author:** ![CARTHUR6](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/carthur6/32/43872_2.png) [@CARTHUR6](https://community.hubspot.com/u/CARTHUR6)\
**Post date:** [October 21, 2021, 5:09pm UTC](https://community.hubspot.com/t/gdpr-delete-contact-with-api/18950/3 "2021-10-21T17:09:55Z")

</div>

@Willsonhello, im using the node js dependency available -v 5.0.0 unfortnunatly i get `“message”: “HTTP request failed”,  
“status”: 404` when use the function call -

hubspotClient.crm.contacts.gdprApi.purgeByEmail()

Kindly assist. let me know if this is deprecated or theres a better alternative’
