---
title: "Delete a collection"
description: "Only the user's own collections. The posts stay in Discover. Needs the `videos:create` permission."
---

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

Path: Mosio REST API › Discover

`DELETE /v1/discover/collections/{id}`

Only the user's own collections. The posts stay in Discover. Needs the `videos:create` permission.

## Authentication

- `apiKey`, apiKey, in header, header `x-api-key`

## Path parameters

- `id` (`deleteDiscoverCollection.path.id`; string, required)

## Code samples

### cURL

```bash
curl --request DELETE \
  --url 'https://app.mosio.me/v1/discover/collections/<id>' \
  --header 'x-api-key: <x-api-key>'
```

### TypeScript

```typescript
const url = 'https://app.mosio.me/v1/discover/collections/<id>';
const options = {method: 'DELETE', headers: {'x-api-key': '<x-api-key>'}};

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

### Python

```python
import requests

url = "https://app.mosio.me/v1/discover/collections/<id>"

headers = {"x-api-key": "<x-api-key>"}

response = requests.delete(url, headers=headers)

print(response.text)
```

## Responses

### 200

Deleted.

#### Example

```json
{
  "id": "string",
  "deleted": true
}
```

- `id` (`deleteDiscoverCollection.response.200.id`; string, required)
- `deleted` (`deleteDiscoverCollection.response.200.deleted`; boolean, required)

### 401

The API key is missing or not valid.

#### Example

```json
{
  "error": "unauthorized",
  "message": "Kirim API key di header x-api-key."
}
```

- `error` (`deleteDiscoverCollection.response.401.error`; string, required) — A stable error code.
  - one of `"unauthorized"`, `"invalid_api_key"`, `"insufficient_scope"`, `"forbidden"`, `"invalid_input"`, `"invalid_composition"`, `"idempotency_conflict"`, `"project_edited"`, `"quota_exceeded"`, `"insufficient_credits"`, `"too_many_active_renders"`, `"duration_too_long"`, `"not_found"`, `"internal_error"`
- `message` (`deleteDiscoverCollection.response.401.message`; string, required) — A message for people, in Indonesian.
- `details` (`deleteDiscoverCollection.response.401.details`; unknown, optional) — More about the error, such as the fields to fix.

### 404

No such video or file in this workspace.

#### Example

```json
{
  "error": "unauthorized",
  "message": "string",
  "details": null
}
```

- `error` (`deleteDiscoverCollection.response.404.error`; string, required) — A stable error code.
  - one of `"unauthorized"`, `"invalid_api_key"`, `"insufficient_scope"`, `"forbidden"`, `"invalid_input"`, `"invalid_composition"`, `"idempotency_conflict"`, `"project_edited"`, `"quota_exceeded"`, `"insufficient_credits"`, `"too_many_active_renders"`, `"duration_too_long"`, `"not_found"`, `"internal_error"`
- `message` (`deleteDiscoverCollection.response.404.message`; string, required) — A message for people, in Indonesian.
- `details` (`deleteDiscoverCollection.response.404.details`; unknown, optional) — More about the error, such as the fields to fix.


Source: https://docs.mosio.me/api/delete-discover-collection/index.md
