You can't undo or turn back evil that has yet to happen, as it has not, well, happened. That would be prevention, not undoing. This also explains how Ganon comes back atleast once afterward on all three timelines. We know that Link couldn't have wished for Ganon to have never existed, otherwise...