Docs

zitadel invitation cancel

Cancel a pending invitation so its link stops working, or remove an expired or declined one.

Usage

npx @zitadel/cli@latest invitation cancel [<invitation_id>] [flags]

Arguments

ArgumentDescription
<invitation_id>The invitation to cancel. Omit it to pick a pending, expired or declined one.

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, --forceCancel the invitation without the confirmation prompt. Required when non-interactive.

It also takes the global flags.

Examples

npx @zitadel/cli@latest invitation cancel
npx @zitadel/cli@latest invitation cancel inv_01JCQK5R7T9V1X3Z5B7D9F1H3J
npx @zitadel/cli@latest invitation cancel inv_01JCQK5R7T9V1X3Z5B7D9F1H3J --force

API

It calls Cancel an invitation, DELETE /invitations/{invitation_id}, in the Invitations API.

Was this helpful?