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

# Delete an user

`DELETE /users/{userId}`

## Request

- Base URL: `https://connect.clever.gy`
- URL: `https://connect.clever.gy/users/{userId}`
- Auth: API key in header `clevergy-api-key`

Deletes the user's account and all its related information (meters, energy
data...).

**Please note that this action is irreversible.**

When the response is a 202, the process is not immediate and usually takes
several minutes until the user is permanently deleted.

## Path parameters

- `userId` string, required

## Response `202`

Record successfully deleted.

## Other responses

- `401`: Unauthorized
- `404`: Not found
- `default`: Unexpected error

---

[API](https://skmtc.dev/clevergy/apis/clevergy-connect-api.md) - [All operations](https://skmtc.dev/clevergy/apis/clevergy-connect-api/llms.txt) - [OpenAPI document](https://skmtc.dev/clevergy/apis/clevergy-connect-api/revisions/d333c5eecb5b?raw)
