Marklogic 8: bulk removal

I am using Marklogic 8.0.6, and I am wondering if the massive method can be deleted. For example, I want to delete 150,000 documents that I can identify with a list of URIs or with common properties (fields COUNTRY = US and COLOR = BLUE).

Is there a way to use the built-in ML function (in node.js) to execute these DELETEs in mass access mode (for both cases: a list of URIs and common properties)? For delay reasons, it is obvious that 150,000 API calls are not efficient.

Thanks Romny.

+4
source share
1 answer

There are several options.


. documents.remove , uris:

db.documents.remove(
  ['/doc1.json', '/doc2.json']
)
+3

Source: https://habr.com/ru/post/1661154/


All Articles