# POST /auto-queues/remove-all-enrollments

**Resource:** [Auto Queues](./auto-queues.md)  
**MCP tool:** `remove_from_all_auto_queues`  
**Scopes:** `automations:write`  
**Write operation:** yes

Remove a contact or deal from EVERY Auto Queue (drip sequence) in the workspace at once, cancelling all of their still-pending steps across all queues. Pass ONE of contact_id or deal_id. Use this instead of calling remove_from_auto_queue once per queue when you want a full unenrol (e.g. the customer unsubscribed or churned). Returns cancelled_count (total pending steps stopped) and queues_affected; cancelled_count: 0 means nothing was pending for that contact/deal in any queue.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `contact_id` | body | string | no | Cancel this contact's pending steps across all queues. |
| `deal_id` | body | string | no | Cancel this deal's pending steps across all queues. |
| `require_approval` | body | boolean | no | Optional. Set true to route this write into the approval queue for human review instead of executing it immediately (returns 202 + an approval_id). Works even when your key/token has permission to execute directly. |

## Request example

```bash
curl -X POST   "https://api.trustpager.com/functions/v1/api/v1/auto-queues/remove-all-enrollments"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"contact_id":"...","deal_id":"..."}'
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`