# Withdraw analytics consent

**Publié le** : 2026-05-12
**Catégorie** : Analytics & Tracking

## `POST /analytics/consent-withdraw`

**Withdraw analytics consent**

Withdraw analytics consent for the current visitor. Clears the
tracking cookie server-side and returns 202 with a confirmation
message. No request body is required; only the tracking cookie
plus the site context are read.

### Responses

| Status | Description |
| --- | --- |
| `201` | Successful response |
| `422` | Validation error |


> **Notes:** Envelope has no `data` wrap. Returns 202. Rate-limit bucket:
> analytics (~1200 rpm per IP). Idempotent: calling it twice is safe.

### Examples

```curl
curl -X POST --cookie "lynkow_v_id=anon-01HZ..." "https://api.lynkow.com/public/{siteId}/analytics/consent-withdraw"
```

```javascript
await fetch(`https://api.lynkow.com/public/${siteId}/analytics/consent-withdraw`, {
  method: 'POST',
  credentials: 'include',
})
```

### Response Example

```json
"{\n  \"success\": true,\n  \"message\": \"Cookie cleared\"\n}\n"
```

---