how to delete a stopped docker container code example Example: remove stopped containers $ docker rm $(docker ps -a -q)