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

# Delete a user

`DELETE /users/{id}`

Delete a user from the account. Deleting a user does **NOT** delete any files from the account; it merely removes a user's access. Aternatively, locking a user via the [PATCH /users/{id}](#operation/updateUser) will keep the user in your account, but make it unable to log in. 

Resources and shares owned by the deleted user will be owned by the master user after the deletion.

**Notes:**
 
- You must have [admin-level access](/docs/account/04-users/01-admin-users) to delete a user.
- The primary owner of the account cannot be deleted.

## Headers

- `ev-api-key` string, required
- `ev-access-token` string, required

## Response `200`

Successful Operation

- EmptyResponse
  - `responseStatus` integer — Http status code of the response.
  - `data` string[]

---

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