Loading TOC...

xdmp.collectionDelete

xdmp.collectionDelete(
   $uri as String
) as null

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

declareUpdate();
xdmp.collectionDelete("/my-collection");

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy