Docs

zitadel grant delete

Delete a grant by id.

Usage

npx @zitadel/cli@latest grant delete <id> [flags]

Arguments

ArgumentDescription
<id>grant id Required.

Flags

FlagDescription
-s, --server <value>Override the resolved server URL.
-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.
--dry-runPreview without mutating files or the platform.
-f, --forceDelete the grant without the confirmation prompt. Required when non-interactive.

It also takes the global flags.

Examples

npx @zitadel/cli@latest grant delete <id> --force --json

API

It calls Revoke a grant, DELETE /grants/{grant_id}, in the Grants API.

Was this helpful?