Suicidal thoughts don’t happen in isolation, and are often a symptoms of other issues or difficulties.  These might include: 

If suicidal thoughts and feelings are symptoms of symptoms of other issues or difficulties, then addressing these issues will reduce the suicidal thoughts.  

It's important to remember that every problem has a solution and emotional pain can most certainly be healed.  Most people with suicidal thoughts find they really want is NOT to end their lives, but to seek solutions end emotional pain.