In medicine what is a vagotomy?

Surgery for ulcers. In the past, surgery to transect the nerve responsible for stomach digestive juice secretion was used as a method to manage peptic ulcer disease. More effecive and safe medications have since rendered this approach obsolete.