Certified GKH Gardening Expert
This will depend on the exact cause for the gummosis. This is just a term that refers to the excretion of sap, which can be caused by many issues including insects, fungal/bacterial infections, animal damage, etc. There are several diseases with gummosis as part of the name.
To remediate the gummosis, you will need to find what is causing it. Your local extension service can help. Here is a link to find the closest one to you: https://www.gardeningknowhow.com/extension-search
Here is one type of gummosis so you can see the treatment for it: