docker command to remove all non-essential imasges 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 }