Docker Compose: Remove all containers, networks, volumes and images from a project

Published at 24 Oct 2024

Docker Compose allows us to run dockerized projects, it pulls images, creates networks, volumes and containers.

If you want to completely remove the project from your system, you can use the following command:

docker compose down -v --rmi all --remove-orphans

This command will remove all containers, volumes, networks and images that belong to the docker-compose.yml project.