command to delete all images in docker code example Example 1: docker delete all images docker system prune Example 2: remove docker images docker system prune -a