flexrep.pullDelete( domain-id as (Number|String), [target-id as (Number|String)] ) as null
This function deletes the pull configuration from the Replica database.
// Execute against a Replica database. const flexrep = require('/MarkLogic/flexrep'); declareUpdate(); // Obtain the domain ID from the database used by the Master to enable CPF. 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') }); const cfg = flexrep.configurationGet(domain, true); const domainId = flexrep.configurationGetId(cfg); flexrep.pullDelete(domainId); // Removes the Pull Replication configuration element from the Replica database.
http://marklogic.com/xdmp/privileges/flexrep-admin
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.