# Delete Copilot

DELETE https://api.credal.ai/api/v0/copilots/deleteCopilot
Content-Type: application/json

Reference: https://docs.credal.ai/api-reference/api-reference/copilots/delete-copilot

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Body (application/json)

This endpoint expects an object.

- `id` (UUID, required) — Copilot ID

## Response

### 200

- `copilotId` (UUID, required)

## Examples

**Request**

```json
{
  "id": "ac20e6ba-0bae-11ef-b25a-efca73df4c3a"
}
```

**Response**

```json
{
  "copilotId": "ac20e6ba-0bae-11ef-b25a-efca73df4c3a"
}
```

**SDK Code**

```typescript Example0
import { CredalClient } from "@credal/sdk";

async function main() {
    const client = new CredalClient({
        apiKey: "YOUR_TOKEN_HERE",
    });
    await client.copilots.deleteCopilot({
        id: "ac20e6ba-0bae-11ef-b25a-efca73df4c3a",
    });
}
main();

```

```python Example0
from credal import CredalV0
import uuid

client = CredalV0(
    api_key="YOUR_TOKEN_HERE",
)

client.copilots.delete_copilot(
    id=uuid.UUID("ac20e6ba-0bae-11ef-b25a-efca73df4c3a"),
)

```

## Related pages

- [Create Copilot](./api-reference-2-api-reference-copilots-create-copilot.md)
- [Create Conversation](./api-reference-2-api-reference-copilots-create-conversation.md)
- [Provide Message Feedback](./api-reference-2-api-reference-copilots-provide-message-feedback.md)
- [Add Collection To Copilot](./api-reference-2-api-reference-copilots-add-collection-to-copilot.md)
- [Remove Collection From Copilot](./api-reference-2-api-reference-copilots-remove-collection-from-copilot.md)
- [Update Configuration](./api-reference-2-api-reference-copilots-update-configuration.md)
- [Export](./api-reference-2-api-reference-copilots-export.md)
- [Send Message](./api-reference-2-api-reference-copilots-send-message.md)
- [Stream Message](./api-reference-2-api-reference-copilots-stream-message.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
