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