The Sainte-Justine hospital sued the child’s parents because they are refusing to consent to the procedure unless the hospital plans to reintubate the child if things go wrong.
The hospital says doctors believe the child can breathe on his own and that continuing intubation will cause more harm.
However, the hospital says that doctors say the child should be given end-of-life care in the event that he stops being able to breathe without support.
The boy has been in a coma since June 12 after he was found at the bottom of the family pool.
The hospital says it will not remove the breathing tube until the parents have had a chance to appeal the ruling.
A lawyer for the parents says they are studying the decision and have not decided whether to appeal.