MarkLogic Server 11.0 Product Documentation
info:database-delete

info: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. :)
    
Powered by MarkLogic Server | Terms of Use | Privacy Policy