Removal of irrelevant links