Skip to main content
Deletes one or more volumes by name. Volumes that are currently in use by containers (running or stopped) cannot be deleted.

Usage

container volume delete [--all] [--debug] [<names> ...]
Alias: container volume rm

Arguments

names
string
Volume names (can specify multiple)

Options

-a, --all
boolean
Delete all volumes
--debug
boolean
Enable debug output

Examples

# Delete a specific volume
container volume delete myvolume

# Delete multiple volumes
container volume delete vol1 vol2 vol3

# Delete all unused volumes
container volume delete --all

# Using alias
container volume rm myvolume
Volumes cannot be deleted if they are in use by any container (running or stopped). Remove the container first, or use container volume prune to remove only unused volumes.
Deleting a volume permanently removes its data. This operation cannot be undone.

Build docs developers (and LLMs) love