When you ask how to detach - the answer is - it's a practice. You can train yourself to ask the key question - does the action, behavior etc. I'm about to do move me closer to detachment or closer to being invested in a particular outcome - if it's the latter - don't do it - change course.
Little by little you get there. FTR - I'm 8 months in and still working on it. It takes time. It's not easy but you will get there.
You may be thinking that you cannot recover from the backslide. Well guess what YOU WILL!
Keep your head up.
"The difficulties of Life are intended to make us BETTER,not bitter". "Fear is a prison, where you are the jailer. FREE YOURSELF!" "Life is usually all about how you handle Plan B." - Jack3Beans