Hello there. OCD can be treated with medications or psychotherapy (counselling), but most commonly it's dealt with the combination of both.
Good that your thoughts are controlled. About the compulsion, yoga and meditation doesn not treat compulsions. It requires adequate dose of medications or rigorous behavior therapy called CBT -Cognitive Behaviour therapy (mainly ERP in your case ).
Compulsions cannot to eradicated, but yes definitely controlled and also reduce the distress due to it.
Duration of medication for OCD is dependant on patient condition, severity and cannot be fixed. It can vary from minimum of 1year to upto 3-4 years or more. Usually does not cause problems if taken for long, under doctor's supervision and regular follow ups
Next Steps
kindly consult local Psychiatrist or Teleconsultation and strat on medications