Loading TOC...

MarkLogic Server 11.0 Product Documentation
flexrep.configurationDelete

flexrep.configurationDelete(
   domain-id as (Number|String)
) as null

Summary

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.

Example

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.
     
   

Required Privileges

http://marklogic.com/xdmp/privileges/flexrep-admin

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.