Skip to main content
All CollectionsSecurity, Privacy & Terms
Programmatically delete users
Programmatically delete users
Updated over a week ago

In keeping with June’s commitment to GDPR and CCPA readiness, June offers the ability to delete and suppress data about end-users when they are identifiable by a userId, should they request it from you.

In order to request a data deletion of a user_id you need to send a POST request to our deletion endpoint.

Each request needs to be authenticated like any "track, identify or group call" event.

To authenticate your requests add your API_KEY to the headers of your requests like
Authorisation: Basic #{YOUR_API_KEY}



Example value




Here's an example curl request to this endpoint:

curl -X POST "" \
-H "Authorization: Basic YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"user_id":"abcd-256"}'

All deletions are processed asynchronously within 30 days from your request and data is hard deleted in 90 days.

Did this answer your question?