Skip to content
Website API / Visitors

Erase a visitor’s data

DELETEhttps://<your Reveata origin>/api/v1/websites/{website}/visitors/{visitorId}

Erases one visitor for a privacy erasure request: deletes its events, sessions, identify profile and live presence, and anonymises its payments, customer rows and subscriptions (amounts are kept, so revenue totals do not change; email, name and the visitor link are removed). Reports for the days involved are recomputed within minutes. This cannot be undone. Needs the admin role and an access token with visitors:write.

Try in playground

Request

Path parameters

websitestringrequired

Website id or domain, e.g. example.com

1–253 characters

visitorIdstringrequired

1–64 characters

Headers

Authorizationstringrequired

Bearer followed by an account token or an OAuth access token with the visitors:write scope.

Response

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

FieldTypeDescription
status"ok"
dataobject
data.visitorIdsstring[]
data.eventsinteger
data.sessionsinteger
data.visitorsinteger
data.paymentsinteger
data.customersinteger
data.subscriptionsinteger
data.exportsinteger
data.daysstring[]