MarkLogic Server 11.0 Product Documentation
temporal:collection-remove

temporal:collection-remove(
   $collection-name as xs:string
) as empty-sequence()

Summary

This function removes the named temporal collection from the Schemas database.

Parameters
collection-name The name of the collection to be removed.

Example

xquery version "1.0-ml"; 
 
import module namespace temporal = "http://marklogic.com/xdmp/temporal" 
      at "/MarkLogic/temporal.xqy";

temporal:collection-remove("temporalCollection")

(: Removes the "temporalCollection" collection. :)     
Powered by MarkLogic Server | Terms of Use | Privacy Policy