docker clear out containers code example
Example 1: remove stopped containers
$ docker rm $(docker ps -a -q)
Example 2: delete docker containers
docker container rm [container id]
Example 3: docker remove container
docker system prune
$ docker rm $(docker ps -a -q)
docker container rm [container id]
docker system prune