delete method for pages