# Delete Collection

DELETE https://api.credal.ai/api/v0/documentCollections/deleteCollection
Content-Type: application/json

Delete the collection.

Reference: https://docs.credal.ai/api-reference/api-reference/document-collections/delete-collection

## 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.

- `collectionId` (UUID, required)

## Response

### 200

- `collectionId` (UUID, required)

## Examples

**Request**

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

**Response**

```json
{
  "collectionId": "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.documentCollections.deleteCollection({
        collectionId: "ac20e6ba-0bae-11ef-b25a-efca73df4c3a",
    });
}
main();

```

```python Example0
from credal import CredalV0
import uuid

client = CredalV0(
    api_key="YOUR_TOKEN_HERE",
)

client.document_collections.delete_collection(
    collection_id=uuid.UUID("ac20e6ba-0bae-11ef-b25a-efca73df4c3a"),
)

```

## Related pages

- [Credal | Documentation](../index.md)
- [Overview](./api-reference-v-0-overview.md)
- [Docs](../guides.md)
- [Introduction](./getting-started-introduction.md)
- [API Reference](./api-reference-index.md)
- [Service Accounts](./api-reference-v-0-service-accounts.md)
- [Quickstart](./getting-started-quickstart.md)
- [Overview](./api-reference-v-1-overview.md)
- [Overview](./getting-started-tutorials-common-first-agents-employee-onboarding-assistant-overview.md)
- [OAuth Setup](./api-reference-v-1-o-auth-setup.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.
