docker rmi -f <image_id>
Meaning: Forcefully removes an image. Usage: Removes the image even if it has dependent child images or containers. Example: docker rmi -f my-image forcefully removes the my-image image.
docker rmi -f my-image
my-image