Marklogic: Empty a database

From Glitchdata
Jump to navigation Jump to search

Deleting all the documents in a database is as simple as:


xdmp:forest-clear(xdmp:database-forests(xdmp:database("My Database")))