Is there docker image tagging without dipendancy in image ID

I have docker environment with multiple tagging.
like eg :

image01:dev - > image01:staging - > image01:Prod
image02:dev - > image01:staging - > image01:Prod

in this case i have to remove one tagged environment, because they use same image ID. how can i change the image ID with tagging

echo "Docker Compose Down"
docker-compose down
echo "Docker Compose Down ... Complete!"

echo "Docker Images Remove"
docker rmi -f $(docker images -q)
echo "Docker Images Remove ... Done!"

Error response from daemon: conflict: unable to delete 3637565c5b84 (cannot be forced) - image is being used by running container 67692aab8b26
Error response from daemon: conflict: unable to delete 60892921e72f (cannot be forced) - image is being used by running container 4be9a7ee6d0d
Error response from daemon: conflict: unable to delete 8289f92814de (cannot be forced) - image is being used by running container b06fb2e8b8a8
Error response from daemon: conflict: unable to delete b2c5303a61cb (cannot be forced) - image is being used by running container 550f14f5d8d3
Error response from daemon: conflict: unable to delete db95989f3c68 (cannot be forced) - image is being used by running container 3752ae226b9e
Error response from daemon: conflict: unable to delete 6f2a973fcb00 (cannot be forced) - image is being used by running container e0b92afc05c2

Source: StackOverflow