# Remove the booking contact

> Removes the booking contact from the trip, as the contact panel's Remove does: their access to this trip and the contact details stored with it go; their account and their other trips stay.

`DELETE /v1/trips/{tripId}/contact`

Removes the booking contact from the trip, as the contact panel's Remove does: their access to this trip and the contact details stored with it go; their account and their other trips stay. No undo, so `confirm` (a query parameter) must be the contact's email — the contact block's, or the account's when the block has none. Add a contact again with POST.

**Permissions:** `travelers:write` · **Kind:** destructive · **Cost:** 1 unit · MCP tool [`remove_trip_contact`](https://api.bymundi.com/docs/mcp/tools/remove_trip_contact.md)

Cannot be undone.

## Path parameters

| Field | Type | Required | Description |
|---|---|---|---|
| `tripId` | uuid | yes |  |

## Query parameters

| Field | Type | Required | Description |
|---|---|---|---|
| `confirm` | string | yes | The contact's email. max 200 chars |

## Response `200`

| Field | Type | Required | Description |
|---|---|---|---|
| `object` | "trip_contact" | yes |  |
| `tripId` | uuid | yes |  |
| `deleted` | true | yes |  |

## Errors

Errors are [problem details](https://api.bymundi.com/docs/guides/errors.md). Besides the refusals described above, any call like this one can return:

- [`invalid_request`](https://api.bymundi.com/problems/invalid_request.md) — Invalid request
- [`unauthorized`](https://api.bymundi.com/problems/unauthorized.md) — Missing or invalid API key
- [`insufficient_scope`](https://api.bymundi.com/problems/insufficient_scope.md) — Missing permission
- [`rate_limited`](https://api.bymundi.com/problems/rate_limited.md) — Rate limit reached
- [`not_found`](https://api.bymundi.com/problems/not_found.md) — Not found
- [`idempotency_key_reused`](https://api.bymundi.com/problems/idempotency_key_reused.md) — Idempotency-Key reused
- [`request_in_progress`](https://api.bymundi.com/problems/request_in_progress.md) — Request in progress
- [`forbidden`](https://api.bymundi.com/problems/forbidden.md) — Not allowed

## Examples

#### curl

```bash
curl -X DELETE https://api.bymundi.com/v1/trips/$TRIP_ID/contact \
  -H "Authorization: Bearer $BYMUNDI_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
```

#### JavaScript

```javascript
const res = await fetch(`https://api.bymundi.com/v1/trips/${tripId}/contact`, {
  method: "DELETE",
  headers: {
    Authorization: `Bearer ${process.env.BYMUNDI_KEY}`,
    "Idempotency-Key": crypto.randomUUID(),
  },
});
if (!res.ok) throw new Error((await res.json()).detail);
const data = await res.json();
```

#### Python

```python
import os, uuid, requests

res = requests.delete(
    f"https://api.bymundi.com/v1/trips/{tripId}/contact",
    headers={"Authorization": f"Bearer {os.environ['BYMUNDI_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
)
res.raise_for_status()
data = res.json()
```
