delete unnecessary routes