> ## Documentation Index
> Fetch the complete documentation index at: https://docs.clix.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete User

> Permanently deletes a user and all associated data

## Overview

Permanently deletes a user identified by their `project_user_id`. This action is irreversible and will remove the user and all associated data from your project.

## Authentication

This endpoint requires authentication via the following HTTP headers:

* `X-Clix-Project-ID`: Your project ID
* `X-Clix-API-Key`: Your Clix Secret API Key

## Path Parameters

| Parameter         | Type   | Required | Description                                 |
| ----------------- | ------ | -------- | ------------------------------------------- |
| `project_user_id` | string | Yes      | The unique identifier of the user to delete |

## Example Request

```bash theme={null}
DELETE /api/v1/users/clix_user
```

No request body is required for this endpoint.

## Response

### Success Response (200 OK)

Returns an empty response indicating successful deletion:

```json theme={null}
{}
```

### Error Responses

#### 400 Bad Request

Returned when:

* `project_user_id` is missing or invalid

Returns a plain text error message:

```
Project User Id must be provided
```

#### 401 Unauthorized

Authentication failed or invalid API key.

## Notes

* This operation is **irreversible** - deleted users cannot be recovered
* All user data including properties, devices, and event history will be permanently removed
* If you need to temporarily disable a user, consider updating their properties instead of deleting
* After deletion, the same `project_user_id` can be reused to create a new user
* Associated devices will also be removed when the user is deleted
* The endpoint does not return a 404 error - it returns 200 OK even if the user doesn't exist


## OpenAPI

````yaml DELETE /api/v1/users/{project_user_id}
openapi: 3.1.0
info:
  title: clix/external/v1/clix.proto
  version: version not set
servers:
  - url: https://api.clix.so
security:
  - ProjectIdAuth: []
    ApiKeyAuth: []
tags:
  - name: ClixExternalService
paths:
  /api/v1/users/{project_user_id}:
    delete:
      tags:
        - ClixExternalService
      summary: Delete a user
      description: Permanently deletes a user and all associated data
      operationId: ClixExternalService_DeleteUser
      parameters:
        - name: project_user_id
          in: path
          required: true
          description: The unique identifier of the user to delete
          schema:
            type: string
      responses:
        '200':
          description: User deleted successfully
          content:
            application/json:
              schema:
                type: object
                description: Empty response
        '400':
          description: Bad request - invalid or missing parameters
          content:
            text/plain:
              schema:
                type: string
                example: Project User Id must be provided
components:
  securitySchemes:
    ProjectIdAuth:
      type: apiKey
      in: header
      name: X-Clix-Project-ID
      description: Project ID for authentication
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Clix-API-Key
      description: API Key for authentication

````