To get rid of bad habits, it's important to identify what triggers them. By recognizing the situations or emotions that lead to the habit, you can start to avoid or change these triggers. For example, if stress leads to unhealthy eating, finding a healthier way to cope with stress can help. Awareness of these triggers is the first step towards making a change.