Delete unnecessary links