MarkLogic Server 11.0 Product Documentation
tieredstorage:database-delete-sub-database

tieredstorage:database-delete-sub-database(
   $database-id as xs:unsignedLong,
   $delete-dbid as xs:unsignedLong
) as empty-sequence()

Summary

This function disassociates the sub database designated by $delete-dbid with the super-database designated by $database-id and deletes the sub database. An error is thrown if the database designated by $delete-dbid is not a sub database of the one designated by $database-id or contains other super-databases than the one designated by $database-id. For details, see Tiered Storage in the Administrator's Guide.

Parameters
database-id ID of the database as super-database of the one to be deleted
delete-dbid Name of the database to be deleted.

Example

xquery version "1.0-ml";
import module namespace ts="http://marklogic.com/xdmp/tieredstorage" 
          at "/MarkLogic/tieredstorage.xqy";

ts:database-delete-sub-database(xdmp:database("Documents"),xdmp:database())
=>
()
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy