# Delete a listener's events
URL: https://musicapi.com/docs/reference/recommendations-delete-user.md

`DELETE https://api.musicapi.com/public/recommendations/users/{userId}`

Section: Recommendations.
Product: MusicAPI Core.
Auth: Basic (any one of them). Use Basic with your Client ID and Client Secret from your server only.

Deletes every event of one listener, for example when the listener deletes their account. Recommendations for them then answer 404 `no_signal` until you send new events. Needs Client Secret authentication.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `userId` | string | yes | Your own id of the listener, 1 to 128 characters. We store it only under your account. |

## Response 204

Deleted.

## Errors

- 401: No valid credential.
- 403: The request does not use Client Secret authentication.
- 429: Your account sent more calls this minute than its rate limit allows.

## Example

```bash
curl -X DELETE "https://api.musicapi.com/public/recommendations/users/{userId}" \
  -u "$MUSICAPI_CLIENT_ID:$MUSICAPI_CLIENT_SECRET"
```
