delete unneeded pages