Skip to content

Command Line Tools

wheels deploy prune all

Prune old containers and old images on every host, keeping the most recent stopped containers per host (--keep=<n>, default 5).

wheels deploy prune all [--keep=<n>] [--destination=<name>] [--dry-run]

| Flag | Description | |------|-------------| | --keep=<n> | How many old (stopped) containers to keep per host. Default 5. There is no deploy.yml equivalent — Kamal's retain_containers: is rejected by the config validator. | | --destination=<name> | Overlay destination config. | | --dry-run | Print the commands without executing. |

Runs prune containers then prune images on every host. The current live container and everything in the retention window survives.

Example
wheels deploy prune all