page delete function