[DEPRECATED]
This function deletes the specified database and its forest.
Parameters
database-name
The name of the database to delete.
delete-data
Determines whether to delete the database data. If set to
fn:true(), both the configuration and the data
directory containing all of the documents in the forest are deleted.
If set to fn:false(), only the configuration information
is deleted, leaving the forest data in the data directory on disk.
Example
xquery version "1.0-ml";
import module namespace info = "http://marklogic.com/appservices/infostudio"
at "/MarkLogic/appservices/infostudio/info.xqy";
info:database-delete("testDB")
(: Deletes the testDB database and forest. :)
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.