MarkLogic Server 11.0 Product Documentation
xdmp:collection-delete

xdmp:collection-delete(
   $uri as xs:string
) as empty-sequence()

Summary

Deletes from the database every document in a collection. If there are no documents in the specified collection, then nothing is deleted, and xdmp:collection-delete still returns the empty sequence.

Parameters
uri The URI of the collection to be deleted.

Example

xdmp:collection-delete("collection-uri")
Powered by MarkLogic Server | Terms of Use | Privacy Policy