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