Prune useless urls.