MarkLogic 10 Product Documentation
info:database-deleteinfo:database-delete(
$database-name as xs:string,
[$delete-data as xs:boolean?]
) as empty-sequence()
Summary
[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. :)
Copyright © 2024 MarkLogic Corporation. MARKLOGIC is a
registered trademark of MarkLogic Corporation.