$ docker-compose down
Stop and remove containers, networks, and volumes defined in a docker-compose.yml.
$ docker-compose down -v
Remove volumes along with containers.$ docker-compose down --rmi all
Remove images along with containers.$ docker-compose down --remove-orphans
Remove containers for services not defined in the Compose file.