HPV infection that causes genital warts is lifelong infection.
It stays in your body, but, usually, within 2 years after initial outbreak, becomes asymptomatic (without visible genital warts).
Immune system is most important for fighting this infection, and, smoking cigarettes lowers its effectiveness.
Acctually, smoking is strongly associated with the initial onset of genital warts, and their relapse after treatment.