Anti-seizure medicines don't cure epilepsy, but they can stop the seizures from happening. For some people, having epilepsy is a lifelong condition and they will need to continue taking medication.
If you haven't had a seizure for 2 or more years, you may want to discuss with your doctor about the option of coming off treatment. This will depend on several things, including the possible impact of seizures returning.
When coming off anti-seizure medicines, it's important that it's done slowly. Suddenly stopping treatment is dangerous. It can cause seizures to start again or happen more often and last longer than before.
You can plan with your doctor how to come off the medication slowly and decide what to do if your seizures start again. If seizures do start again and you go back on medication you may have to start at a low dose again until your body gets use to the medicine. Always talk to your healthcare provider before re-starting anti-seizure medication.