stop and remove container docker code example
Example 1: how to delete docker containers
docker system prune -a
Example 2: delete docker containers
docker container rm [container id]
docker system prune -a
docker container rm [container id]