Docker CLI

docker volume rm

Delete explicitly selected volumes and their contents. Ordinary removal rejects a referenced volume; inspect all container references and confirm the data is disposable or safely backed up. This example is only for the lab-owned volume after its container references are removed. A failure alone is not evidence of an attached container; confirm the diagnostic and references.

Formal Syntax & Structure

docker syntaxdocker
docker volume rm [OPTIONS] VOLUME [VOLUME...]

Parameters & Attributes

NameTypeDescription
VOLUMEstringVerified disposable volume name.

Working Example

Example Snippetdocker
docker volume rm bm-v06-cleanup
Docker Reference