As shown in https://github.com/linkeddata/rdflib.js/pull/633#issuecomment-2002200768, removeDocument() does not remove the item's link relations leaving behind triples with the acl, describedBy, and link predicates referring to the document in the store. These items have the document as subject and a blanknode as t he graph. I don't know if it is a problem to leave them, but it seems cleaner to remove them.
As shown in https://github.com/linkeddata/rdflib.js/pull/633#issuecomment-2002200768, removeDocument() does not remove the item's link relations leaving behind triples with the acl, describedBy, and link predicates referring to the document in the store. These items have the document as subject and a blanknode as t he graph. I don't know if it is a problem to leave them, but it seems cleaner to remove them.