There is no treatment until today to fully exterminate the virus.
There is medication against HSV, which can reduce the duration and frequency of the manifestations and recurrences of the disease. Drugs such as acyclovir can be used locally and orally.
The best prevention in cases of sexual activity is the use of a condom.
But the protection the condoms offer is not absolute. The infected area may not be covered and so the virus can be transmitted during the act.
If one of the two partners has genital herpes it is best to avoid contact as long as there are clinical signs and it is best if they use condoms.