I went to my PD and told him I wanted to leave to pursue ______ field of medicine. He or She should be supportive if you let them know soon enough for them to take more people in the upcoming match (more important in small programs). Then start getting your letters for the match. It worked out for me and I decided much later. If you are staying in the same field it may be tougher. Just checkout resident swap.com
Good luck