def _delete(self, opts):
    if (opts.replicator_id is None):
        _exit_if_errors(['--xdcr-replicator is needed to delete a replication'])
    (_, errors) = self.rest.delete_xdcr_replicator(opts.replicator_id)
    _exit_if_errors(errors)
    _success('XDCR replication deleted')
def _delete(self, opts):
    if (opts.replicator_id is None):
        _exit_if_errors(['--xdcr-replicator is needed to delete a replication'])
    (_, errors) = self.rest.delete_xdcr_replicator(opts.replicator_id)
    _exit_if_errors(errors)
    _success('XDCR replication deleted')