canasta delete

From Canasta Wiki

canasta > delete

canasta delete

Delete a Canasta instance

Synopsis

Permanently delete a Canasta instance, removing containers, volumes, and configuration files. If run without --id from an instance directory, the instance is resolved by matching the current directory against the registry.

If the containers and volumes of a Docker Compose instance cannot be removed, delete stops and leaves the instance registered and its files in place. If the namespace of a Kubernetes instance is still terminating after 10 minutes, delete stops and leaves the instance registered, so running delete again finishes the job. Pass --force to delete the instance anyway; any containers, volumes or namespace that remain must then be removed by hand.

Pass --keep-data to remove the instance from the registry only: its containers or Kubernetes namespace, volumes, Argo CD Application and files stay as they are. Use it to move an instance to the other orchestrator under the same ID: create the new instance, restore a backup into it, and keep the old one as the way back.

canasta delete [flags]

Examples

canasta delete -y
cd /path/to/instance && canasta delete -y
canasta delete -i mysite -y --force
canasta delete -i mysite -y --keep-data

Flags

Flag Shorthand Description Default Required Orchestrator
--force -f Delete even if the containers, volumes or namespace cannot be removed Both
--id -i Canasta instance ID * Both
--keep-data Remove the instance from the registry only, leaving its containers or namespace, volumes and files in place Both
--yes -y Skip confirmation prompt Both

* Defaults to the Canasta instance matching the current directory, if any.

Global flags

Flag Shorthand Description Default Required Orchestrator
--help -h Show help message and exit Both
--verbose -v Enable verbose output Both