docker command to delete a container code example
Example 1: remove stopped containers
$ docker rm $(docker ps -a -q)
Example 2: docker force remove container
docker rm -f [containerid]
$ docker rm $(docker ps -a -q)
docker rm -f [containerid]