---
title: "Delete a user"
method: DELETE
path: "/apps/{appId}/envs/{envId}/users/{userId}"
---

# Delete a user

`DELETE /apps/{appId}/envs/{envId}/users/{userId}`

## Request

- Base URL: `https://app.reflag.com/api`
- URL: `https://app.reflag.com/api/apps/{appId}/envs/{envId}/users/{userId}`
- Auth: HTTP bearer

Synchronously delete a user and its related data, including company memberships, from an environment. Requires the `write:entities` API key scope or admin member access.

## Path parameters

- `appId` string, required: App identifier
- `envId` string, required: Environment identifier
- `userId` string, required: User ID within your application

## Response `200`

User deleted successfully

- object

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Requested resource, or its parent, not found

## Changes

- **2026-09-11** `168d14804058`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/reflag/apis/reflag-management-api/changes/apps/:appId/envs/:envId/users/:userId/delete.md)

---

[API](https://skmtc.dev/reflag/apis/reflag-management-api.md) - [All operations](https://skmtc.dev/reflag/apis/reflag-management-api/llms.txt) - [OpenAPI document](https://skmtc.dev/reflag/apis/reflag-management-api/revisions/280aaed4e96e?raw)
