Certified GKH Gardening Expert
Removing them probably won't do a whole lot. You will have to find out what is causing the problem.
This can be disease, insect damage (usually borers), overwatering, and sometimes, just typical sap leakage.
Unfortunately, your image did not come through. I will not be able to see exactly what is causing your issue.
What I can do is offer an article that will explain common causes for gummosis: https://www.gardeningknowhow.com/edible/fruits/fegen/what-is-gummosis.htm