---
title: "Delete Widget Visitor"
method: DELETE
path: "/core/widget-analytics/visitors/{anonymous_id}"
tags: ["Widget Analytics"]
---

# Delete Widget Visitor

`DELETE /core/widget-analytics/visitors/{anonymous_id}`

## Request

- Base URL: `https://api.anyreach.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.anyreach.ai/core/widget-analytics/visitors/{anonymous_id}`
- Auth: HTTP bearer

Delete one visitor's analytics across the organization's widgets.

For a data-subject request: the visitor's ``anonymous_id`` is what the
loader stores in the browser (``window.anyreach.getContext()``).

## Path parameters

- `anonymous_id` string, required

## Headers

- `x-anyreach-org` string, nullable: Organization ID for user PATs (pat_ prefix tokens)

## Response `200`

Successful Response

- VisitorDeleted
  - `events` integer
  - `sessions` integer

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/anyreach/apis/anyreach-api.md) - [All operations](https://skmtc.dev/anyreach/apis/anyreach-api/llms.txt) - [OpenAPI document](https://skmtc.dev/anyreach/apis/anyreach-api/revisions/2eddf40c8c93?raw)
