Erase everyone identified with an email
Like erasing a visitor, for every visitor identified with this email (browser or server identify) or linked to its payments, and anonymises payments and customer rows carrying the email. Answers 404 when nothing is held for it. Needs the admin role and an access token with visitors:write.
Related: Identify a visitor from your server and List visitors in Visitors.
Request
Path parameters
websitestringrequiredWebsite id or domain, e.g. example.com
1–253 characters
Headers
AuthorizationstringrequiredBearer followed by an account token or an OAuth access token with the visitors:write scope.
Content-TypestringrequiredSend the body as JSON.
One of: application/json
Body fields
emailstringrequiredResponse
What was deleted and anonymised.
{
"status": "string",
"data": {
"visitorIds": [],
"events": 0,
"sessions": 0,
"visitors": 0,
"payments": 0,
"customers": 0,
"subscriptions": 0,
"exports": 0,
"days": []
}
}Response fields
| Field | Type | Description |
|---|---|---|
| status | "ok" | |
| data | object | |
| data.visitorIds | string[] | |
| data.events | integer | |
| data.sessions | integer | |
| data.visitors | integer | |
| data.payments | integer | |
| data.customers | integer | |
| data.subscriptions | integer | |
| data.exports | integer | |
| data.days | string[] |