kick a habit

kick the habit

slang To overcome an addiction, typically to drugs. It took gum, patches, and counseling, but I've finally kicked the habit—no more cigarettes. Unfortunately, the nature of addiction means that kicking the habit isn't as simple as just wanting to stop.
See also: habit, kick
Farlex Dictionary of Idioms.

kick a habit

 and kick the habit; shake the habit; shake a habit
to break a habit. It's hard to kick a habit, but it can be done. I stopped biting my nails. I used to drink coffee every morning, but I kicked the habit.
See also: habit, kick
McGraw-Hill Dictionary of American Idioms and Phrasal Verbs.

kick a habit

Also, kick it; kick the habit. Overcome or give up habitual use, especially of narcotics. For example, Smoking is addictive; it's not easy to kick, or If he doesn't kick the habit, he may not make it through school. This idiom uses kick in the sense of "get rid of." [First half of 1900s]
See also: habit, kick
The American Heritage® Dictionary of Idioms by Christine Ammer.
See also:
  • kick the/(one's) habit
  • shake a/the habit
  • shaken
  • kick the (something)
  • kick the habit
  • kick the habit, drug, booze, etc.
  • make a habit of
  • make a habit of (doing something)
  • make a habit/practice of something
  • gum up the works