temporal:document-wipe( $temporal-collection as xs:string, $uri as xs:string ) as empty-sequence()
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:collection-create 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.
temporal:document-wipe("bitemp","tempdoc5.xml")
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.