deletePage implementation