Reputation: 189
How can you do a collection-delete using Java API? I'm using a JSONDocumentManager for my CRUD operations. Is there a way to do something like:
xdmp:collection-delete("myCollection")
Upvotes: 4
Views: 364
Reputation: 1579
Use the QueryManager.delete() passing it a QueryManager.newDeleteDefinition() and in the DeleteQueryDefinition set the list of collections which you want to have deleted.
Upvotes: 3