---
title: "Delete user"
method: POST
path: "/api/index/v1/deleteuser"
tags: ["Permissions"]
---

# Delete user

`POST /api/index/v1/deleteuser`

Delete the user from the datasource. Silently succeeds if user is not present.
Note: All memberships associated with the deleted user will also be deleted.

## Request body

- DeleteUserRequest — Describes the request body of the /deleteuser API call
  - `version` integer — Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done.
  - `datasource` string, required — The datasource for which the user is removed
  - `email` string, required — The email of the user to be deleted

## Response `200`

OK

## Other responses

- `400` — Bad Request
- `401` — Not Authorized
- `409` — Conflict

---

[API](https://skmtc.dev/gleanwork/apis/glean-api-2.md) · [All operations](https://skmtc.dev/gleanwork/apis/glean-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gleanwork/glean-api-2/revisions/8516a7bdcc02/schema)
