Unload Document Handler
Type: Function
Optional. Called to unload a single document, which may be useful to conserve memory in cases where the hierarchy references a very large number of documents. When using the just-in-time loading feature, documents loaded automatically by scrolling the viewport can only be unloaded automatically if this is implemented.
Arguments
document
Id (Required)
Type: DocumentId
The ID of the document to unload
Returns
Type: Promise
Should resolve to undefined