It is difficult to prevent warts. You can reduce your chances of getting warts by avoiding skin contact with existing warts and with contaminated floors, such as those in locker rooms.
Most warts disappear within a year or two, even if they are not treated. Many people choose to have warts treated either because of minor pain or for cosmetic reasons. Treatment depends on the location of the wart, its type and size, a person's age and health, and his or her willingness to follow through with repeated treatments.
You should talk to your doctor before trying to treat your warts. Over-the-counter liquids and patches containing salicylic acid can decrease the size of a wart, but they should not be used on the face or genitals. Your doctor may treat a wart by applying certain medications or acids, freezing it (cryotherapy) or surgically removing it.