Human papillomavirus (HPV) can remain in the human body for varying lengths of time. In many cases, the immune system clears the virus within 6 months to 2 years. However, some types of HPV can persist in the body for years or even for life, particularly high-risk strains associated with cancer.
Therefore, the most accurate answer from your options is "For life."