Cannot create/remove collection variable1 that is not empty
Cause
There is document in the specified collection.
Response
If you are trying to delete temporal collection that has documents, you need to set its option to "updates-admin-overrides" and perform delete with admin privilege.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.