dflow volumes:delete
Delete a volume and its disk. Data is removed.
This deletes a disk and the data on it. --confirm has to be the volume name. After a successful delete, the application is rolled so the mount is gone. You do not need a separate dflow apps:deploy.
dflow volumes:delete NAME --confirm NAMEFlags
--confirm is required and must equal the volume name. NAME is looked up in the current environment, so an unmounted volume can be deleted. --app APP is optional and looks the volume up on that application instead. --wait defaults to true. --wait-timeout defaults to 20m and must be from 1s to 30m.
What you see
A mounted volume is detached first, in the same operation: the application workload is rolled without the mount, then the disk is removed. You do not need dflow volumes:umount first. An environment cannot be deleted while it still has a volume, so delete the disks first.
When it fails
The wrong confirm value exits before any request and does not delete the disk. When the detach fails the operation fails with operation_failed and the disk is kept.
How is this guide?
Last updated on