Delete all created docker container command

docker rm $( docker ps -q -f status=created)

Delete all exited docker container command

docker rm $( docker ps -q -f status=exited)

Delete all unused images command

docker rmi $( docker images -q -f dangling=true)