Added deletion of page properties when deleting a component.