LiveRecoverVYG Developer Docs
CDP REST APIAPI Reference

Delete Profile (GDPR)

Permanently delete one of your brand's profiles, and (by default) its events + sessions.

DELETE /cdp/profiles/{id} permanently deletes ONE profile. With ?withData=true (the default) it ALSO purges the profile’s events and sessions — the GDPR erasure semantics.

This is IRREVERSIBLE — there is no undo. To guard against an accidental erase you MUST pass ?confirm=true; without it the request is rejected before anything is deleted. A missing or out-of-scope profile returns 404 with zero effect (missing and out-of-scope are indistinguishable by design). The route is tightly rate-limited so a runaway script cannot mass-delete, and every deletion writes an immutable audit record.

Every delete is bound to your brand's shop scope. See Tenant Isolation & Scope.

Query parameters

ParameterTypeRequiredDefaultDescription
profileIdstringYesPath parameter ({id}) — the Unomi profile id to delete. (Not a query parameter.)
withDatabooleanNotrueQuery parameter (?withData=) — true (default) also purges the profile’s events + sessions; false deletes only the profile document.
confirmtrueYesQuery parameter (?confirm=true) — REQUIRED. Acknowledges the IRREVERSIBLE effect; the request is rejected without it.

Response

The 200 response body:

FieldTypeDescription
profileIdstring
withDataboolean
deletedboolean
status'deleted'
scopestringYour brand's resolved shop domain.

Errors

All errors share the standard envelope { "error": string, "error_description": string }.

StatusCodeWhen
400bad_requestThe confirm=true guard is missing, or the input failed validation.
401unauthorizedMissing or invalid API credential.
403forbiddenNo connected Shopify integration resolves a scope for the brand.
404not_foundNo such profile in your brand scope (missing or out-of-scope).
405method_not_allowedThe request used a method other than DELETE.
429rate_limitedToo many privacy requests for this brand — retry shortly.
502upstream_errorThe CDP rejected the delete.
503upstream_unavailableThe CDP is temporarily unavailable — retry.
500internal_errorAn unexpected error prevented the delete.

On this page