docker remove all im code example Example 1: remove all images docker docker rmi $(docker images -a -q) Example 2: docker delete all images docker system prune