Remove all Docker containers with one command

To remove all Docker containers with one command, run the following:

docker rm -f $(docker ps -aq)