xdmp.collectionDelete( uri as String ) as null
Deletes from the database every document in a collection. If there are
no documents in the specified collection, then nothing is deleted, and
xdmp.collectionDelete
still returns the empty sequence.
Parameters | |
---|---|
uri | The URI of the collection to be deleted. |
declareUpdate(); xdmp.collectionDelete("/my-collection");
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.