Removes all document links from the collection.

<void> DocumentLinkCollection.clear(<boolean> keepText, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])

Parameters

Parameter Description
keepText If this parameter is set to true, all document links are removed without deleting their texts. Otherwise, the texts are also deleted.
callback Optional. Is called when the operation completed.
errorCallback Optional. Is called when the operation failed with an error.