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