Abstain

meaning: to not do something, especially something enjoyable that you think might be bad:

usage: He took a vow to abstain from alcohol / smoking / sex .