This is an example of "passive euthanasia."
Passive euthanasia is when demise is achieved by an oversight - i.e. when somebody gives the individual a chance to let the person die. This can be by pulling back or withholding treatment: Withdrawing treatment: for instance, turning off a machine that is keeping a man alive, so incredible their illness.