how to delete all containers and images in docker 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 }