It's definitely a very relatable feeling. Self-destructive thoughts don't just weigh heavy on you, they also weigh heavy on the people who care about you.
It's not easy to even just get to a point where you realise it's a thing you're doing, but it's a good first step, and potentially the first one someone can take toward healing.