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")
Use QueryManager.delete () , passing it QueryManager.newDeleteDefinition () , and in DeleteQueryDefinition set the list of collections that you want to delete.