Remove unneeded pages