Remove obsolete pages in update hook.