How to cure genital warts?

No cure. There is no cure, but there are many treatments and 2 vaccines.
Cannot. Genital warts are due to infection with human papilloma virus (hpv), for which some treatments can reduce the lesions, but if you have them there is a risk that you have other sexually transmitted diseases, and also this virus has the potential to predispose you to cancer. You should see your doctor and not neglect these.