how to delete docker image from local code example
Example 1: remove all images docker
docker rmi $(docker images -a -q)
Example 2: windows delete all docker images
$ docker system prune --all
Example 3: docker remove image
docker image rm [OPTIONS] IMAGE [IMAGE...]
#[OPTIONS]
--force , -f Force removal of the image
--no-prune Do not delete untagged parents
Example 4: remove all docker images
$images = docker images -a -q
foreach ($image in $images) { docker image rm $image -f }