Skip to content

1ctl volumes detach

Detach a volume from its deployment while preserving the PVC for later use.

1ctl volumes detach <volume-name-or-id>
Argument Required Variadic
volume-name-or-id Yes No
Flag Type Required Default Description
--id string No — Volume ID (explicit, for scripting)
--app string No — App name for volume name resolution
--yes, -y boolean No false Skip confirmation prompt
--help, -h boolean No — Show help
Terminal window
# Detach a volume
1ctl volumes detach my-volume
# Detach with explicit ID
1ctl volumes detach vol_abc123 --id vol_abc123 --yes