swear off

swear off  {v.},  {informal}
To give up something you like or you have got in the habit of using by making a promise.
Mary swore off candy until she lost ten pounds.
John has sworn off dessert for Lent.
Categories: {informal} {v.}