Skip to content

DELETE /users/{id}

DELETE/v1/collect/users/{user_id}secret key

Deletes every session (with its IP), batch record, event, risk state, stored window embedding and recognised device for that user id under your tenant, immediately and irreversibly; other tenants are untouched. Stop the SDK for the user first (see Consent and lifecycle). Under the alpha terms, models already trained are not retrained.

Request
curl -X DELETE "https://api.behavlabs.com/v1/collect/users/u_8f3a91" \
  -H "Authorization: Bearer $BEHAVLABS_SECRET_KEY"
Response
{ "user_id": "u_8f3a91", "sessions_deleted": 14, "events_deleted": 182340 }