---
title: "Delete user"
method: DELETE
path: "/users/{user_id}"
tags: ["Users", "GDPR", "Moderation"]
---

# Delete user

`DELETE /users/{user_id}`

Deletes user and optionally all their belongings. The Endpoint is deprecated, please use 'Delete Users' endpoint instead

## Response `200`

Successful response

- DeleteUserResponse, nullable
  - `duration` string, required — Duration of the request in human-readable format
  - `task_id` string, required
  - `user` UserObject — Represents chat user
    - `ban_expires` string, date-time — Expiration date of the ban
    - `banned` boolean, required — Whether a user is banned or not
    - `created_at` string, date-time — Date/time of creation
    - `deactivated_at` string, date-time — Date of deactivation
    - `deleted_at` string, date-time — Date/time of deletion
    - `id` string, required — Unique user identifier
    - `invisible` boolean
    - `language` string — Preferred language of a user
    - `last_active` string, date-time — Date of last activity
    - `online` boolean, required — Whether a user online or not
    - `push_notifications` PushNotificationSettings
      - `disabled` boolean
      - `disabled_until` string, date-time
    - `revoke_tokens_issued_before` string, date-time — Revocation date for tokens
    - `role` string, required — Determines the set of user permissions
    - `teams` string[] — List of teams user is a part of
    - `updated_at` string, date-time — Date/time of the last update

## Other responses

- `400` — Bad request
- `429` — Too many requests

---

[API](https://skmtc.net/streamioapi/apis/stream-io-api.md) · [All operations](https://skmtc.net/streamioapi/apis/stream-io-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/streamioapi/stream-io-api/versions/f5553620777b/schema)
