MarkLogic - How can you delete a collection using the Java API?

How can you delete a collection using the Java API ? I am using JSONDocumentManager for my CRUD operations. Is there a way to do something like:

xdmp:collection-delete("myCollection")
+4
source share
1 answer

Use QueryManager.delete () , passing it QueryManager.newDeleteDefinition () , and in DeleteQueryDefinition set the list of collections that you want to delete.

+3
source

All Articles