admin.databaseDelete( config as element(configuration), database-ids as (Number|String)[] ) as element(configuration)
This function deletes the configuration from the specified database(s). It does not delete the configuration or data for any forests attached to the deleted database(s).
Parameters | |
---|---|
config | A configuration specification, typically as returned from one of the Admin module functions. |
database-ids |
The id(s) for the specified database(s) (for example,
xdmp:database("myDatabase") ).
|
http://marklogic.com/xdmp/privileges/admin/database
http://marklogic.com/xdmp/privileges/admin/database/{id}
const admin = require('/MarkLogic/admin.xqy'); var config = admin.getConfiguration() admin.databaseDelete(config, admin.databaseGetId(config, "foo")) => The new configuration with the specified databases is removed. Use admin.saveConfiguration to save these changes.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.