Paramahansa Yogananda said:
Many times I have used the Divine Power of will to destroy a habit that was seeking to get hold of me. When I have eaten certain foods and found myself becoming bound by a wish for them… I stopped eating those foods until the desire was gone.