---
title: "Delete User"
method: DELETE
path: "/{databaseId}/users/{userId}"
tags: ["Users"]
---

# Delete User

`DELETE /{databaseId}/users/{userId}`

Deletes a user of the given *userId* from the database.

If there are any purchases, ratings, bookmarks, cart additions or detail views made by the user present in the database, they will be deleted in cascade as well.

## Path parameters

- `databaseId` string, required
- `userId` string, required

## Response `200`

Successful operation.

## Other responses

- `400` — The *userId* does not match ''^[a-zA-Z0-9_\-:@\.]+$''.
- `404` — User of the given `userId` is not present in the database. In many cases, you may consider this code a success – it only tells you that nothing has been deleted from the database since the user was already not present. 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)
