Cleanup and remove core pages.