---
title: "Delete a user"
method: DELETE
path: "/api/v2/users/{userId}"
tags: ["Users"]
---

# Delete a user

`DELETE /api/v2/users/{userId}`

> 🔑
>
> Required OAuth scope: `users:write`.

Deletes a specific user given its unique ID.

## Path parameters

- `userId` string, ObjectId, required

## Headers

- `360-api-version` 'v2.0', required

## Response `204`

Deletes a specific user.

## Other responses

- `400` — The given `userId` corresponds to the company owner and cannot be deleted.
- `401` — The given access token is either missing, invalid, has expired, or has been revoked.
- `403` — The given access token does not have the required OAuth scope to execute the request.
- `404` — The given `userId` does not correspond to any existing user.
- `429` — The client has sent too many requests in a short amount of time.

---

[API](https://skmtc.net/360learning/apis/core-api.md) · [All operations](https://skmtc.net/360learning/apis/core-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/360learning/core-api/versions/94b691b0b72c/schema)
