remove document links from part iterations when deleting a document, fixes #146