docker remove all versions of image code example Example 1: docker delete all images docker system prune Example 2: delete all docker images docker system prune -a