first identify your images, because we are gonna force delete them. be sure to have the appropriate filter pattern with list
docker image ls -f "reference=prefix*"
then, when you are sure that you have the appropriate filter, use it in the following foreach. It will run a docker rm -f
on the id of each image your filter will return
for /F "tokens=*" %i in ('docker image ls -qf "reference=prefix*"') do docker image rm -f %i
and dont forget to prune in order to reclaim your disk space!
docker system prune