docker rmi image_name V docker image rm image_name

There is a newer way of using the command, as it is also the case in a few other docker commands.

Even though both the command can be used to remove a docker image, the command using docker image rm is the most recent way of using it.