Remove all volumes of docker

Fri Jan 22 2021
  1. Stop the container(s) using the following command:
docker-compose down
  1. Delete all containers using the following command:
docker rm -f $(docker ps -a -q)
  1. Delete all volumes using the following command:
docker volume rm $(docker volume ls -q)

or

docker volume prune
  1. Delete all images using the following command:
docker rmi -f $(docker images -aq)
  1. Restart the containers using the following command:
docker-compose up -d