Kick a habit

To break or stop a bad habit.

The man used to smoke but he was able to kick the habit.