Skip to main content

Mass Environment Delete

mass environment delete​

Delete an environment

Synopsis​

Delete Environment

Permanently deletes an environment. This action cannot be undone.

Deleting an environment does not tear down its running infrastructure. Decommission the environment's instances first with mass environment decommission if you want the underlying resources removed.

Usage​

shell
mass environment delete <environment> [flags]

Where <environment> is the environment ID.

Flags​

  • --force, -f: Skip confirmation prompt (useful for automation)

Confirmation​

By default, this command requires typing the environment ID to confirm deletion. This is a safety measure to prevent accidental deletions. Use the --force flag to skip this confirmation.

Examples​

shell
# Delete an environment (with confirmation)
mass environment delete ecomm-staging

# Delete an environment without confirmation prompt
mass environment delete ecomm-staging --force
mass environment delete [environment] [flags]

Options​

  -f, --force   Skip confirmation prompt
-h, --help help for delete

Options inherited from parent commands​

      --profile string   Configuration profile to use (overrides MASSDRIVER_PROFILE and the active profile)

SEE ALSO​