You should avoid the action: Leave him alone to work it out.
When someone is struggling with depression or may be considering suicide, it’s important to offer support and not isolate them. Encouraging your friend to talk about their feelings, listening to them, and seeking help from a trusted adult are all more constructive actions.