# Remove a track from a collection

Remove a track from a collection owned by the caller. The operation is idempotent — removing a track that is not in the collection has no effect. The track itself is not deleted.

Returns `404` if the collection 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_`).

**`track_id`** string required

The id of the track to remove (`mtrack_`).

## Returns

A mutation acknowledgement with `success`, `id` (the removed track id), and `detail`.

Example

```bash cURL
curl -X DELETE "https://api.aitronos.com/v1/music/org_abc123/collections/mcoll_4a1f9c7e2b8d/tracks/mtrack_8d2e1f6a3c9b" \
  -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/tracks/mtrack_8d2e1f6a3c9b"
)
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/tracks/mtrack_8d2e1f6a3c9b",
    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/tracks/mtrack_8d2e1f6a3c9b',
  { method: 'DELETE', headers: { 'X-API-Key': apiKey } }
);

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

**Response:**


```json 200 OK
{
  "success": true,
  "id": "mtrack_8d2e1f6a3c9b",
  "detail": "Track removed from collection."
}
```

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

- [Add a track to a collection](/docs/api-reference/music/add-collection-track)
- [List a collection's tracks](/docs/api-reference/music/list-collection-tracks)
- [Reorder a collection](/docs/api-reference/music/reorder-collection)