---
title: "Delete a pipeline (soft delete)"
---

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

Path: Channel Automation API › Pipeline

`DELETE /api/pipeline/pipelines/{id}`

## Authentication

- `bearerAuth`

## Path parameters

- `id` (`delete/api/pipeline/pipelines/id.path.id`; string, required) — Pipeline ID
  - format `uuid`

## Code samples

### cURL

```bash
curl --request DELETE \
  --url 'https://api.channelautomation.com/api/pipeline/pipelines/<id>'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/pipeline/pipelines/<id>';
const options = {method: 'DELETE'};

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

### Python

```python
import requests

url = "https://api.channelautomation.com/api/pipeline/pipelines/<id>"

response = requests.delete(url)

print(response.text)
```

## Responses

### 200

Pipeline deleted successfully

#### Example

```json
{
  "success": true,
  "message": "string"
}
```

- `success` (`delete/api/pipeline/pipelines/id.response.200.success`; boolean, optional)
- `message` (`delete/api/pipeline/pipelines/id.response.200.message`; string, optional)

### 400

Cannot delete pipeline with active opportunities

### 404

Pipeline not found

### 500

Internal server error


Source: https://developer.channelautomations.com/api/delete-api-pipeline-pipelines-id/index.md
