docker auto remove some images code example
Example 1: windows delete all docker images
$ docker system prune --all
Example 2: remove all docker images
$images = docker images -a -q
foreach ($image in $images) { docker image rm $image -f }
$ docker system prune --all
$images = docker images -a -q
foreach ($image in $images) { docker image rm $image -f }