Loading TOC...

MarkLogic Server 11.0 Product Documentation
temporal:document-wipe

temporal:document-wipe(
   $temporal-collection as xs:string,
   $uri as xs:string
) as empty-sequence()

Summary

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.

Required Privileges

By default http://marklogic.com/xdmp/privileges/temporal-document-wipe or the one user specified for this temporal collection.

Example

temporal:document-wipe("bitemp","tempdoc5.xml")

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.