Doctor said I have polycyctic ovarian syndrome, how do I get rid of it?

You Can't. Pcos is a condition that occurs when your diet, exercise and lifestyle act upon a genetic predisposition. It's like the gun is the genetic risk but the lifestyle factors pull the trigger. You can't change your genetics, however, you can change diet and learn which exercise will build muscle mass and ultimately control this condition.
Modify. Unfortunately, you can't get rid of pcos. However, you can control it with lifestyle modification and medication as determined by your doctor.
Depends. The only way to definitively get rid of it is to have the ovaries removed. Otherwise, you work with gyn to get the treatment that minimizes symptoms as much as possible and treat complications as they arise.