removes obsolete links