Any group whose ID you pass into this function must not have any hosts
belonging to it when the transaction begins, otherwise an exception is thrown.
If you need to delete the group, remove its hosts in a separate transaction before
calling this function.
Example
const admin = require('/MarkLogic/admin.xqy');
const config = admin.getConfiguration()
admin.groupDelete(config, admin.groupGetId(config, "myOldGroup"))
//returns the new configuration element -- use admin.saveConfiguration
//to save the changes to the configuration or pass the configuration
//to other Admin API functions to make other changes.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.