---
title: "Erase a traveler"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.nicer.travel/llms.txt
> Use this file to discover all available pages before exploring further.

# Erase a traveler

Path: Nicer API › Notes and tasks

`DELETE /crm/travelers/{travelerId}`

URL: `https://api.nicer.travel/crm/travelers/{travelerId}`

Erases a traveler for good: their profile, documents, dates, relationships, notes, tasks, trips and timeline. Bookings already made keep their own copy of the travelers in commerce. To keep the traveler but hide them, archive them instead (isArchived on update). Answers the traveler's id with deleted set to true. Admins only. Errors: 403 ERROR_UNAUTHORIZED, 404 ERROR_ITEM_NOT_FOUND.

## Authentication

- `bearerAuth`, http bearer, header `Authorization`, format `JWT`

## Path parameters

- `travelerId` (`crm.travelers.delete.path.travelerId`; string, required)

## Header parameters

- `x-nicer-company` (`crm.travelers.delete.header.x-nicer-company`; string, required) — Company context. Authentication and tenant membership are validated by the API.
- `X-Nicer-CRM-Contract` (`crm.travelers.delete.header.X-Nicer-CRM-Contract`; string, required)
  - one of `"resource"` · example: `"resource"`

## Code samples

### JavaScript SDK

```javascript
import { createClient } from "@nicertravel/sdk";

const nicer = createClient({
  baseUrl: "https://api.nicer.travel",
  token: process.env.NICER_TOKEN,
  headers: { "x-nicer-company": process.env.NICER_COMPANY },
});

await nicer.crm.travelers.delete({
  "travelerId": "string"
});
```

### Nicer CLI

```bash
nicer crm travelers delete --traveler-id 'string' --company "$NICER_COMPANY"
```

### cURL

```bash
curl --request DELETE \
  --url 'https://api.nicer.travel/crm/travelers/<travelerId>' \
  --header 'Authorization: Bearer <token>' \
  --header 'X-Nicer-CRM-Contract: resource' \
  --header 'x-nicer-company: string'
```

### TypeScript

```typescript
const url = 'https://api.nicer.travel/crm/travelers/<travelerId>';
const options = {
  method: 'DELETE',
  headers: {
    'x-nicer-company': 'string',
    'X-Nicer-CRM-Contract': 'resource',
    Authorization: 'Bearer <token>'
  }
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.nicer.travel/crm/travelers/<travelerId>"

headers = {
    "x-nicer-company": "string",
    "X-Nicer-CRM-Contract": "resource",
    "Authorization": "Bearer <token>"
}

response = requests.delete(url, headers=headers)

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "deleted": true,
  "id": "string"
}
```

- `deleted` (`crm.travelers.delete.response.200.deleted`; boolean, required) — Always true: the record no longer exists.
- `id` (`crm.travelers.delete.response.200.id`; string, required) — The id of the record deleted.

### 400

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`crm.travelers.delete.response.400.errorCode`; string, required)
- `errorMessage` (`crm.travelers.delete.response.400.errorMessage`; string, required)

### 401

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`crm.travelers.delete.response.401.errorCode`; string, required)
- `errorMessage` (`crm.travelers.delete.response.401.errorMessage`; string, required)

### 403

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`crm.travelers.delete.response.403.errorCode`; string, required)
- `errorMessage` (`crm.travelers.delete.response.403.errorMessage`; string, required)


Source: https://docs.nicer.travel/api/Notes-and-tasks/crm.travelers.delete/index.md
