Docs

zitadel preview rm

Remove a live preview from the project.

Usage

npx @zitadel/cli@latest preview rm <url> [flags]

Arguments

ArgumentDescription
<url>The preview URL to remove. Required.

Flags

FlagDescription
-f, --forceRemove the preview 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 preview rm https://acme-git-sso-acmeinc.vercel.app
npx @zitadel/cli@latest preview rm https://acme-git-sso-acmeinc.vercel.app --force

API

It calls Remove a preview, POST /projects/{project_id}/previews/remove, in the Previews API.

Was this helpful?