In most cases, floaters don't cause major problems and don't require treatment. Eye drops or similar types of medication won't make floaters disappear.
After a while, your brain learns to ignore floaters and you may not notice them.
If your floaters don't improve over time, or if they significantly affect your vision, a vitrectomy may be recommended. This is a surgical operation to remove the vitreous humour in your eye along with any floating debris and replace it with a saline (salty) solution.
If your retina has become detached, surgery is the only way to re-attach it. Without surgery, a total loss of vision is almost certain. In 90% of cases, only one operation is needed to re-attach the retina.