---
title: "Delete User by ID"
method: DELETE
path: "/users/{id}"
tags: ["Users"]
---

# Delete User by ID

`DELETE /users/{id}`

Delete a user by ID

## Path parameters

- `id` string, objectid, required — The ID of the item to delete

## Response `200`

OK

- ControllersResponseGithubModelsUser
  - `data` ModelsUser — The data to update
    - `_id` string, objectid — ID
    - `created_at` string, date-time — Created timestamp
    - `created_by` string, objectid — Created by
    - `email` string — Email
    - `first_name` string — First name
    - `last_name` string — Last name
    - `role` string — Role
    - `role_id` string, objectid — Role ID
    - `root_admin` boolean — Root admin
    - `root_admin_role` boolean
    - `routes` string[]
    - `updated_at` string, date-time — Updated timestamp
    - `updated_by` string, objectid — Updated by
    - `username` string — Username
  - `error` string
  - `message` string
  - `status` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `500` — Internal Server Error

---

[API](https://skmtc.net/crawlab-team/apis/crawlab-api.md) · [All operations](https://skmtc.net/crawlab-team/apis/crawlab-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/crawlab-team/crawlab-api/revisions/c7a4715c1f13/schema)
