to promise that you will not do or use sth again
swear off sth
I decided to swear off burgers forever.
Definiciones del Oxford Advanced Learner's Dictionary, 9.ª edición