---
title: "Delete a knowledge source and its chunks"
---

> 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 › AI Knowledge Studio

`DELETE /api/knowledge-studio/sources/{sourceId}`

## Path parameters

- `sourceId` (`delete/api/knowledge-studio/sources/sourceId.path.sourceId`; string, required)
  - format `uuid`

## Code samples

### cURL

```bash
curl --request DELETE \
  --url 'https://api.channelautomation.com/api/knowledge-studio/sources/<sourceId>'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/knowledge-studio/sources/<sourceId>';
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/knowledge-studio/sources/<sourceId>"

response = requests.delete(url)

print(response.text)
```

## Responses

### 200

Source deleted


Source: https://developer.channelautomations.com/api/delete-api-knowledge-studio-sources-source-id/index.md
