The writer is making a rather capricious deal with her heart that both she (the thinker) and it (the heart, holder of emotion) will together conspire to forget the man who has apparently spurned her. she instructs her heart what its job is (to forget the warmth, which makes sense from a heart's point of view) and she will forget "the light.