Remove a Docker Compose stack including its volumes
docker compose down remove volumes | reset docker compose environment | docker compose down -v | docker | compose | volumes | deleteWarning, destructive. This command deletes, overwrites or changes data in a way that cannot easily be undone. Check every placeholder carefully and make a backup first.
docker compose -f /opt/app/compose.yaml down -vLike down, but also removes the named volumes defined in the Compose file and the anonymous volumes of the containers. Useful for setting up a test or development environment completely from scratch.
Note: There is no confirmation prompt. Databases, uploads and everything else in the volumes is irrevocably deleted, so back up first. Volumes marked as external are kept.
Also searched as
- docker compose down remove volumes
- reset docker compose environment
- docker compose down -v