A cavity or cavitation means empty space. I'm not sure how surgery will remove a space unless it's to fill it with something. And if so, what it's filled with would be a major concern.
OP won't get rid of a gum cavity, but if you use antibacterial oils like coconut, oregano, etc it can help keep the canal clean and uninfected. I can't guarantee it, but I strongly suspect surgery will do more harm than good as usual.