added destroy mechanism for linked documents