According to WebMD:
If they are bothersome, you can move them away from your field of vision by moving your eyes. This maneuver shifts the fluid in your eyes. Looking up and down is usually more effective than looking from side to side.
If eye floaters are so dense and numerous that they affect your vision, your eye doctor may consider a surgical procedure called a vitrectomy. During this procedure, the vitreous and its floating debris are removed and replaced with a salt solution.