Command Line Tools
wheels deploy remove
Destructive teardown. Stops and removes every app container, proxy container, and accessory container, then logs out of the registry on every host.
Synopsis
Section titled “Synopsis”wheels deploy remove --confirm [--destination=<name>] [--dry-run]| Flag | Description |
|---|---|
--confirm | Required. Without it, the verb throws DeployMainCli.RemoveNotConfirmed. |
--destination=<name> | Scope the teardown to one destination. |
--dry-run | Print the docker commands that would run without executing. Always start here. |
Behavior
Section titled “Behavior”- For every host in every role:
docker ps -a --filter label=service=<service> ...|xargs docker rm -f. Broad — removes app containers for every version, not just the current one. - Remove
kamal-proxyon every host. - Remove every declared accessory container.
docker logoutof the registry on every host.
Volumes attached to accessories persist (they’re named) — docker rm doesn’t take them with it. Follow up with docker volume rm manually if you want a truly clean slate.
Example
Section titled “Example”wheels deploy remove --confirm --dry-run # always preview firstwheels deploy remove --confirm --destination=staging