docker cli delete container code example
Example 1: docker remove not running containers
docker container rm $(docker container ls –aq)
Example 2: docker remove container
docker system prune
docker container rm $(docker container ls –aq)
docker system prune