# Remove tracks from library
URL: https://musicapi.com/docs/reference/remove-liked-tracks.md

`DELETE https://api.musicapi.com/api/{integrationUserUUID}/liked/tracks`

Section: Read and write a user's library.
Product: MusicAPI Core.
Auth: Basic, DevToken, DocsSession (any one of them). Use Basic with your Client ID and Client Secret from your server only.

[Check which services support removing tracks from library](/docs/get-started/services-and-features)


Remove tracks from a user's library.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `integrationUserUUID` | uuid | yes | The connected user: the `integrationUserUUID` from the sign-in callback. |

## Request body

`application/json`, required.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `entryIds` | string[] | yes | Identifiers associated with a tracks within a specific collection. It is used to identify a particular instance of a track within a playlist or a user's library. Track entry id can be obtained during fetching playlist items or user's library. A maximum of 20 IDs can be sent in one request. |

## Response 200

ok

## Errors

- 404: Your account has no connected user with this uuid, or the item does not exist.
- 412: The user must sign in again (`IntegrationUserNotAuthenticated`).
- 429: Too many requests. Wait for the seconds in `Retry-After`.

## Example

```bash
curl -X DELETE "https://api.musicapi.com/api/{integrationUserUUID}/liked/tracks" \
  -u "$MUSICAPI_CLIENT_ID:$MUSICAPI_CLIENT_SECRET" \
  -H "Content-Type: application/json" \
  -d '{"entryIds":["42YpD6LQura7bGOtntatQw"]}'
```
