---
title: "Delete Rating"
method: DELETE
path: "/{databaseId}/ratings/"
tags: ["User-Item Interactions"]
---

# Delete Rating

`DELETE /{databaseId}/ratings/`

Deletes an existing rating specified by (`userId`, `itemId`, `timestamp`) from the database or all the ratings with the given `userId` and `itemId` if `timestamp` is omitted.

## Path parameters

- `databaseId` string, required

## Query parameters

- `userId` string, required
- `itemId` string, required
- `timestamp` number, double

## Response `200`

Successful operation.

## Other responses

- `400` — Given `userId` or `itemId` does not match ^[a-zA-Z0-9_\-:@\.]+$, or `timestamp` is not a real number ≥ 0.
- `404` — The `userId`, `itemId` or rating with the given (`userId`, `itemId`, `timestamp`) not found in the database. If there is no additional info in the JSON response, you probably have an error in your URL.

---

[API](https://skmtc.dev/recombee/apis/recombee-api.md) · [All operations](https://skmtc.dev/recombee/apis/recombee-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/recombee/recombee-api/revisions/a9c9c33eb2e8/schema)
