Skip to main content

tcb env delete

Destroys a CloudBase environment and every resource in it. The operation cannot be undone.

Usage​

tcb env delete [options] -e <envId>

Flags​

FlagRequiredDescriptionDefault
-e, --env-id <envId>YesEnvironment ID—
--dry-runNoSimulate the run, showing the environment and what would be affected without destroying anything—
--yesNoSkips confirmation prompts—
--platform-id <platformId>NoPlatform edition resource pool ID, destroys an environment inside that pool—

Example​

# Preview what destruction affects
tcb env delete -e my-env-id --dry-run

# Destroy after confirming
tcb env delete -e my-env-id --yes

# Destroy an environment in a platform edition pool (v3.8.3+)
tcb env delete --platform-id <platformId> -e my-env-id --yes

⚠️ Destruction removes cloud functions, databases, storage and every other resource in the environment, with no way back. Run --dry-run first to confirm the scope.

With --platform-id only the target environment in the pool is destroyed, the pool itself and the other environments are not affected.