Erase a data subject's analytics data
Permanently deletes every session and event recorded for a data subject on this tracker, and returns counts of what was deleted together with a re-count proving nothing remains. This cannot be undone. The call is idempotent: erasing a subject that holds no data succeeds with zero counts and alreadyErased: true. Requires the analytics:delete-data scope.
Authorization
bearerAuth Organization API key, sent as Authorization: Bearer ft_<public>.<secret>. Create one under Settings → API keys and grant it the scopes each endpoint lists.
In: header
Path Parameters
Tracker the data subject was recorded on.
1 <= lengthData subject identifier — the visitor id the tag assigned (analytics_sessions.uid).
1 <= length <= 512Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/v1/analytics/trackers/string/subjects/string"{ "data": { "subjectId": "string", "trackerId": "string", "receiptId": "string", "erasedAt": "string", "deleted": { "sessions": 0, "events": 0 }, "residual": { "sessions": 0, "events": 0 }, "verified": true, "alreadyErased": true }, "meta": { "requestId": "string", "timestamp": "string" }}