I've got some code that moves archives some pages and when these are archived then the associated page needs to be deleted. I can get the associated page to be deleted from Live using delete_by_id but not from Staging.
It looks like using the delete method of the DataObject should be the answer but I'm not sure how to implement this. Has anyone else done anything similar or have any ideas??