Loading TOC...

tieredstorage:database-delete-super-database

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

Summary

This function disassociates the super database designated by $delete-dbid with the sub-database designated by $database-id and deletes the super database. An error is thrown if the database designated by $delete-dbid is not a super database of the one designated by $database-id or contains other sub-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 sub-database of the one to be deleted
delete-dbid The ID 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-super-database(xdmp:database("Documents"),xdmp:database())
=>
()
  

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.