Docs
End users

Delete an end user's data

DELETE/end-users/{userId}Needsworkspace.settings

Deletes everything stored about one of your users in one transaction: events, view state, checklist progress, survey responses, profiles and their entries in delivery logs. Idempotent.

Authorization

secretKey
headerAuthorizationBearer <sk_…>

A secret API key from Settings → API keys. It acts with its creator's role.

Path Parameters

userId*string

Your app's user id, URL-encoded.

Query Parameters

anonymousId?array<string>

Also include these browsers' anonymous ids (repeat the parameter, at most 20).

Response Body

Deleted

application/json
  1. response
endUser*
deleted*

Rows deleted per kind of data.

total*integer
Shell
curl -X DELETE 'https://app.cueston.com/api/end-users/string'
Example Response
JSON
{
  "endUser": {
    "reference": "string",
    "anonymousIds": 0
  },
  "deleted": {
    "property1": 0,
    "property2": 0
  },
  "total": 3
}