Loading TOC...

MarkLogic Server 11.0 Product Documentation
flexrep:pull-delete

flexrep:pull-delete(
   $domain-id as xs:unsignedLong,
   [$target-id as xs:unsignedLong]
) as empty-sequence()

Summary

This function deletes the pull configuration from the Replica database.

Parameters
domain-id The ID of the domain containing the replicated content. This value is obtained from the Trigger database used by the Master database.
target-id The optional ID of the target. When used, you can specify a specific domain/target combination from which to delete the pull configuration.

Example

  (: Execute against a Replica database. :)
  xquery version "1.0-ml"; 

  import module namespace flexrep = "http://marklogic.com/xdmp/flexible-replication" 
      at "/MarkLogic/flexrep.xqy";

  let $domain := 9535475951259984368

  return  flexrep:pull-delete($domain)

  (: Removes the Pull Replication configuration element from the Replica database. :)
     

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.