how to remove all docker images in use code example
Example 1: docker delete all images
docker system prune
Example 2: docker remove all containers and images
docker container rm $(docker container ls -aq)
docker system prune
docker container rm $(docker container ls -aq)