Delete docker images

How to delete all the docker images at once??

There are multiple ways to delete images. one method i use is to delete images is docker rmi command along with the initial characters of images IDs.

You can delete everything that is not attached to a running container using

docker system prune

See the documentation before trying it!

Assuming no image is being used by any container. @ashutoshd you can run this command as well.
docker rmi $(docker images -q)