how to remove all the exited containers 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)