completely remove a docker image code example
Example 1: remove all images docker
docker rmi $(docker images -a -q)
Example 2: docker remove all containers and images
docker container stop $(docker container ls -aq)
docker rmi $(docker images -a -q)
docker container stop $(docker container ls -aq)