Docker Compose Cheat Sheet/Stop and remove volumes

Removes containers, networks, and named volumes.

Section: Project Lifecycle

Stop and remove volumes

bash
bash
docker compose down -v
Explanation

Use carefully because stateful data will be deleted.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Project Lifecycle
Stop and remove resources
Stops containers and removes project networks.
OpenIn sheetbashsame section
Start services in foreground
Builds, creates, and starts all services defined in the Compose project.
OpenIn sheetbashsame section
Start services in background
Run the full stack in detached mode.
OpenIn sheetbashsame section
Build and start services
Rebuild images before starting containers.
OpenIn sheetbashsame section
Start existing containers
Starts previously created services without recreating them.
OpenIn sheetbashsame section
Stop running services
Gracefully stops running containers in the project.
OpenIn sheetbashsame section