SUPPORT.TWILIO.COM END OF LIFE NOTICE: This site, support.twilio.com, is scheduled to go End of Life on February 27, 2024. All Twilio Support content has been migrated to help.twilio.com, where you can continue to find helpful Support articles, API docs, and Twilio blog content, and escalate your issues to our Support team. We encourage you to update your bookmarks and begin using the new site today for all your Twilio Support needs.

Batch Deleting Segment User Profiles with the GDPR Endpoint: Limits and Best Practices

Objective

This article explains how to efficiently batch delete user profiles in Segment using the GDPR endpoint, including API limits, suppression best practices, and what to do if you need to process large volumes (e.g., 80,000+ users). If you need to remove sensitive event data from Engage or comply with privacy regulations like GDPR or CCPA, this guide will help you understand the process and avoid common pitfalls.

 

Product

Twilio Segment 

 

Environment

Segment Console

 

User Account Permission/Role(s) Required 

Workspace Owner or Admin permissions required to access the Privacy Portal and use the GDPR API.
 

Procedure 

  1. Export User Traits (Optional but Recommended):
    Before deletion, export any user traits or data you may need to restore later.

  2. Batch Deletion Requests:

    • Use the GDPR endpoint(Create Source Regulation) to submit deletion requests.
    • You can delete up to 5,000 userIds per API call.
    • For large batches (e.g., 80,000 users), split your requests into cohorts (e.g., 16 calls of 5,000 users each).
  3. Suppression During Deletion:

    • Use the SUPPRESS_WITH_DELETE regulationType option to prevent new events from being ingested for affected users during the deletion window.
    • Any events sent during suppression will be permanently lost.
  4. Unsuppress and Recreate Profiles:

    • After deletion is confirmed (Segment’s SLA is up to 30 days), use the GDPR endpoint to unsuppress users by using the UNSUPPRESS regulationType.
    • Recreate user profiles with an Identify call if needed.
  5. Monitor API Limits:

    • Segment enforces a monthly rolling limit of 110,000 user deletions per workspace.
    • If you expect to exceed this, request a temporary limit increase via your Segment support contact.

 

Additional Information 

Have more questions? Submit a request
Powered by Zendesk