First of all, you need to consult your doctor for medication to get rid off worms.
Once you are done with your medicines you can go for home remedies like coconut,garlic,unripe papaya,carom seeds,pomogranate tree bark tea,turmeric
Avoid :
sugar or sweets