If you want to save some time removing all containers, you can use this two command(the first one is to stop all if there are some running):
docker stop $(docker ps -a -q) docker rm $(docker ps -a -q)
You can also remove all the images with:
docker rmi -f $(docker images -q)
Be aware that the -f option will force delete even images that are being used.