remove docker cointainer code example Example 1: remove all containers docker docker rm $(docker ps -aq) Example 2: delete container id docker rm $(docker ps -a -q)