how to remove the docker in images code example Example 1: remove docker image docker image rm [image id] Example 2: docker delete image docker system prune -a