temporal.documentWipe( temporal-collection as String, uri as String ) as null
Deletes all versions of a temporal document.
Parameters | |
---|---|
temporal-collection | The URI for the protected temporal collection in which the document is to belong. This must have been previously created by the temporal:collectionCreate function. All versions of the temporal document will be associated with this temporal collection. |
uri | The URI to be used to identify the document in the database. If the document is not the latest version, a suffix will be concatenated to the document URI with a dot as the new URI of the document. |
http://marklogic.com/xdmp/privileges/temporal-document-wipe
or the one user specified for this temporal collection.
declareUpdate(); temporal.documentWipe("bitemp","tempdoc3.xml")
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.