remove all containers docker windows code example
Example 1: windows delete all docker images
$ docker system prune --all
Example 2: docker remov all running containers
docker rm $(docker ps -aq)
Example 3: delete all containers created x hours ago
# Delete all stopped containers
docker container prune
Example 4: docker remove not running containers
docker container rm $(docker container ls –aq)