zitadel users delete
Delete a user by id.
Usage
npx @zitadel/cli@latest users delete <id> [flags]Arguments
| Argument | Description |
|---|---|
<id> | user id Required. |
Flags
| Flag | Description |
|---|---|
-f, --force | Delete the user without the confirmation prompt. Required when non-interactive. |
-e, --env <value> | Environment to run against, e.g. production. Defaults to ZITADEL_ENV, then the hosting platform's build (VERCEL_ENV, or Netlify's CONTEXT), then development. |
--env-file <value> | Read ZITADEL_* values from this file ahead of the process environment. A relative path is read from the current directory, not from --cwd. Cannot be combined with --env. |
It also takes the global flags.
Examples
npx @zitadel/cli@latest users delete <id> --force --jsonAPI
It calls Delete user by ID, DELETE /users/{user_id}, in the Users API.
Was this helpful?