MarkLogic 9 Product Documentation
tieredstorage.databaseDeleteSubDatabase

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

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

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

declareUpdate();
ts.databaseDeleteSubDatabase(xdmp.database('Documents'), xdmp.database('subdb'));
   
Powered by MarkLogic Server | Terms of Use | Privacy Policy