remove specific image from docker code example

Example 1: delete all docker images

docker system prune -a

Example 2: docker remove image

docker image rm [OPTIONS] IMAGE [IMAGE...]
#[OPTIONS]
--force , -f		Force removal of the image
--no-prune		Do not delete untagged parents

Example 3: remove specific image from docker

#remove specific image from docker
if we have mutiple images into docker
REPOSITORY      TAG       IMAGE ID            CREATED             SIZE
rabbitmq      latest     8e428cff54c8        6 hours ago         72.9MB
rabbitmq		3	     7e82a4d17ac1        2 weeks ago         512MB
cmd:docker rmi rabbitmq:latest
by using this command you can remove desire docker image