delete unused links