delete useless links