I guess you are mentioning about granuloma Pyogenicum
Its common in pregnancy
but can occur otherwise also.
The treatment is getting it excised from your doctor.
However it needs to be first ascertained whether that is what you actually have.
It would be best to visit your dermatologist
for the same.