Vitrectomy is the surgical removal of the vitreous gel from the middle of the eye. It may be done when there is a retinal detachment, because removing the vitreous gel gives your eye doctor (ophthalmologist) better access to the back of the eye. The vitreous gel may also be removed if blood in the vitreous gel (vitreous hemorrhage) does not clear on its own.