How to easily remove all Docker stacks that are running with a simple command. docker stack rm $(docker stack ls | awk '{print $1}' | grep -v "NAME")