# Delete a music collection

Soft-delete a collection owned by the caller. The tracks themselves are not deleted — only the collection grouping is removed.

Only the owner may delete a collection. Returns `404` if the collection does not exist or is not owned by the caller.

## Path parameters

**`organization_id`** string required

The organization that owns the collection.

**`collection_id`** string required

The collection id (`mcoll_`).

## Returns

A mutation acknowledgement.

**`success`** boolean

`true` when the collection was deleted.

**`id`** string

The deleted collection id.

**`detail`** string

A human-readable confirmation message.

Example

```bash cURL
curl -X DELETE "https://api.aitronos.com/v1/music/org_abc123/collections/mcoll_4a1f9c7e2b8d" \
  -H "X-API-Key: $FREDDY_API_KEY"
```


```python Python SDK
from aitronos import Aitronos  # pip install aitronos-sdk

client = Aitronos(api_key="your-api-key")

ack = client.delete("/v1/music/org_abc123/collections/mcoll_4a1f9c7e2b8d")
print(ack["detail"])
```


```python Python
import os
import requests

api_key = os.environ["FREDDY_API_KEY"]

response = requests.delete(
    "https://api.aitronos.com/v1/music/org_abc123/collections/mcoll_4a1f9c7e2b8d",
    headers={"X-API-Key": api_key},
)

print(response.json()["detail"])
```


```javascript JavaScript
const apiKey = process.env.FREDDY_API_KEY;

const response = await fetch('https://api.aitronos.com/v1/music/org_abc123/collections/mcoll_4a1f9c7e2b8d', {
  method: 'DELETE',
  headers: { 'X-API-Key': apiKey }
});

const ack = await response.json();
console.log(ack.detail);
```

**Response:**


```json 200 OK
{
  "success": true,
  "id": "mcoll_4a1f9c7e2b8d",
  "detail": "Collection deleted."
}
```

Errors

```json 401 Unauthorized
{
  "success": false,
  "error": {
    "code": "AUTHENTICATION_REQUIRED",
    "message": "Authentication required. Please provide a valid API key.",
    "system_message": "Missing or invalid authorization header",
    "type": "authentication_error",
    "status": 401,
    "details": {},
    "trace_id": "req_abc123xyz",
    "timestamp": "2026-06-28T10:30:00Z"
  }
}
```


```json 404 Not Found
{
  "success": false,
  "error": {
    "code": "RESOURCE_NOT_FOUND",
    "message": "The requested resource was not found.",
    "system_message": "Music collection not found or not owned by caller",
    "type": "client_error",
    "status": 404,
    "details": { "collection_id": "mcoll_4a1f9c7e2b8d" },
    "trace_id": "req_jkl012abc",
    "timestamp": "2026-06-28T10:30:00Z"
  }
}
```

## Related Resources

- [List music collections](/docs/api-reference/music/list-collections)
- [Create a music collection](/docs/api-reference/music/create-collection)
- [Music Studio overview](/docs/api-reference/music/introduction)