remove document links from part iterations when deleting a document