flexrep.configurationDelete( domain-id as (Number|String) ) as null
This function deletes a replication configuration. This removes the configuration document as well as any other documents that were created to track replication state. The properties that track state within individual documents are not removed.
Parameters | |
---|---|
domain-id | The ID of the replicated domain. |
const flexrep = require('/MarkLogic/flexrep'); declareUpdate(); // Obtain the ID of the replicated CPF domain from the Triggers database. const domain = xdmp.eval( 'const dom = require("/MarkLogic/cpf/domains");' + 'fn.data(dom.get("Default Master").xpath("//dom:domain-id"));', null, { 'database' : xdmp.database('Triggers') }); flexrep.configurationDelete(domain); // Deletes the replication configuration for the 'Replicated Content' domain.
http://marklogic.com/xdmp/privileges/flexrep-admin