---
title: "Request deletion of the current user."
method: DELETE
path: "/users/current"
tags: ["Permissions"]
---

# Request deletion of the current user.

`DELETE /users/current`

## Request

- Base URL: `https://h2ogpte.genai.h2o.ai/api/v1`
- URL: `https://h2ogpte.genai.h2o.ai/api/v1/users/current`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/h2o/apis/h2ogpte-rest-api/docs/users/current/delete.ts> (a function with typed inputs; its response is checked against the schema)

Creates a deletion request for the currently authenticated user. Returns a delete ID that must be used to confirm the deletion within 5 minutes.

## Response `200`

Deletion request created successfully

- UserDeletionRequest
  - `delete_id` string, required: Unique identifier for the deletion request. Must be used within 5 minutes to confirm deletion.

## Other responses

- `401`: Unauthorized - Invalid or missing API key
- `default`: Unexpected error

---

[API](https://skmtc.dev/h2o/apis/h2ogpte-rest-api.md) - [All operations](https://skmtc.dev/h2o/apis/h2ogpte-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/h2o/apis/h2ogpte-rest-api/revisions/a82a117320f4?raw)
