Kick the habit

Meaning: To stop doing something that has become a regular or addictive habit.

Example: He finally kicked the habit of staying up late every night.