How to tell my co-advisor I am leaving for PhD?
Tell your co-advisor. If he doesn't react well, take your advisor with you and have a second meeting. Maybe they can work it out colleague to colleague rather than professor to student. Withholding a good letter of recommendation because you want a promising student to stay and work with you is extremely selfish and borderline misconduct.