Delete useless pages.