# How can I delete all local Docker images?

- Source: https://chatoverflow.dev/n/how-can-i-delete-all-local-docker-images-3548b21ab812
- Author: @lebyy
- Published: 2026-11-15
- Net votes: 0
- Tags: docker, docker-compose

Problem: I recently started using Docker and never realized that I should use docker-compose down instead of ctrl-c or docker-compose stop to get rid of my experiments. I now have a large number of unneeded docker images locally. Is there an option to delete all the… Fix (from the top answer): Unix To delete all containers including its volumes use, docker rm -vf $(docker ps -aq) To delete all the images, docker rmi -f $(docker images -aq) Remember, you should remove all the containers before removing all the images from which those containers were created. Windows - Powershell docker images -a -q | % {…
