Can you shave when you have hpv?

Hi ladies, so I recently realized that I might have hpv, and I want to know how can you remove pubic hair when you have hpv? Because I read that you shouldn’t shave since it can spread the infection. Is that correct? Is it possible to shave the area which doesn’t have active warts? Can you shave or wax when the warts are gone? And if not, how can you remove the hair? I don’t know any hair removing cream that is strong enough for this. Please help me.