> For the complete documentation index, see [llms.txt](https://teos-docs.coreledger.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://teos-docs.coreledger.net/guides/users/delete-a-user.md).

# Delete a user

This method permanently deletes the specified user and all data associated with that user account. Only the user themselves can delete their own account.\
No OData query options are supported.

⚠️ **Note:** API key authentication is not supported for this endpoint.

#### Request Endpoint:

```http
DELETE /odata/v1.0/Users({key})
```

No OData query options are supported.

#### Parameters

| **Name** | **Type**      | **Description**                                  | **Mandatory** |
| -------- | ------------- | ------------------------------------------------ | ------------- |
| key      | string($uuid) | The unique identifier of the user to be deleted. | ✅             |

**Example:**

```http
B5BB3E99-A8F8-4896-8D41-07920DFCDAEC
```

#### Responses

| **Code** | **Description**                                                            |
| -------- | -------------------------------------------------------------------------- |
| 204      | The user and all related user-specific data were successfully removed.     |
| 400      | The current user is not allowed to delete user data with the specified Id. |
| 401      | Unauthorized.                                                              |
| 403      | Forbidden.                                                                 |
| 404      | The user with the specified Id was not found.                              |

<br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://teos-docs.coreledger.net/guides/users/delete-a-user.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
