To solemnly promise to stop doing, eating, or engaging with something, usually after a negative experience.
"After getting terrible food poisoning, she swore off sushi for the rest of her life."
I've sworn off relationships for the time being.
— Commonly attributed to various celebrity interviews; widely used as a stock phrase in entertainment journalism.