delete unecessary pages