Teardown Command

The teardown command completely removes an environment and its resources.

Usage

ocuroot teardown [environment] [flags]

Description

The teardown command performs a complete removal of an environment, including:

  • All deployed resources
  • Configuration settings
  • State information
  • Associated data

This is more comprehensive than the destroy command as it removes the environment itself.

Arguments

  • environment: Name of the environment to tear down

Flags

  • --force: Skip confirmation prompts
  • --timeout: Maximum time to wait for teardown

Examples

# Teardown an environment
ocuroot teardown staging

# Force teardown without confirmation
ocuroot teardown staging --force

# Teardown with custom timeout
ocuroot teardown staging --timeout 10m

Safety Considerations

  • This operation is irreversible
  • Always verify the environment name
  • Take backups if needed
  • Be cautious with production environments
  • destroy: Remove specific resources from an environment
  • environment: Manage environments