Loading TOC...

MarkLogic Server 11.0 Product Documentation
tieredstorage.databaseDeleteSuperDatabase

tieredstorage.databaseDeleteSuperDatabase(
   database-id as (Number|String),
   delete-dbid as (Number|String)
) as null

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

const ts = require('/MarkLogic/tieredstorage');

declareUpdate();
ts.databaseDeleteSuperDatabase(xdmp.database('Documents'), xdmp.database('superdb'));
   

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