I struggle with depression and while I would say my worst days in its grasp are over, there's still more to go. Now I don't know what you've been through and I won't inquire to ask, but I can tell you're in pain so I'll send virtual hugs your way.
I was recently given some very useful advice along the lines of: "Ask if your emotions are helpful or unhelpful rather than good or bad, and if the answer is 'No, this emotion is not helpful', tell it to go away". Now this was given to me during my lighter times with depression, so I'm not really sure if it would work all the time, but I thought it might be helpful to share something with you.