# Delete an user `DELETE /api/v1/users/{id}` Deactivates the user and revokes their workspace invitation. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Users → Write**. ## Path parameters - `id` (integer, required) — ID of the user. ## Request Set ASDINCLOUD_API_KEY and any variables named in the example before running it. ```sh curl --request DELETE \ --url "https://api.asdincloud.com/api/v1/users/${ID:?Set ID}" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" ``` ## Response **200 OK** Returns confirmation that the user was deactivated. Example with fictional data and selected fields. ```json { "message_key": "entities.user.messages.deleted" } ``` ## Errors - `401` — The API key is missing or invalid. - `403` — The API key lacks the required permission. - `400` — The account could not be deactivated. - `404` — The requested record was not found.