# Delete a collection

> Delete the collection and every item it holds, in every scope — the per-contact and per-conversation copies included. Returns immediately; the purge drains in batches and writes are refused while status is deleting.

`DELETE https://api.zavu.dev/v1/memory/collections/{collection}`

Delete the collection and every item it holds, **in every scope** — the per-contact and per-conversation copies included. Returns immediately; the purge drains in batches and writes are refused while `status` is `deleting`.

## Parameters

- `collection` (path, string, required): Collection name.

## Responses

### 202

Purge scheduled.

- `status` (string, required)

### 400

Invalid collection name.

- `code` (string, required)
- `message` (string, required)
- `details` (object)

### 401

Unauthorized.

- `code` (string, required)
- `message` (string, required)
- `details` (object)

### 404

Collection not found.

- `code` (string, required)
- `message` (string, required)
- `details` (object)

## Example

```bash
curl -X DELETE "https://api.zavu.dev/v1/memory/collections/collection_abc123" \
  -H "Authorization: Bearer $ZAVUDEV_API_KEY"
```

```typescript
import Zavudev from "@zavudev/sdk";

const zavu = new Zavudev({ apiKey: process.env.ZAVUDEV_API_KEY });

const result = await zavu.memory.collections.delete("collection_abc123");

console.log(result);
```
