docker system prune -f FOR /f "tokens=*" %i IN ('docker ps -a -q') DO docker rm %i FOR /f "tokens=*" %i IN ('docker images -q -f "dangling=true"') DO docker rmi %i