Library Version 11.2.5.2

DB_SITE->remove()
Prev | Chapter 10. Replication Methods | Next

## DB_SITE->remove()

    #include <db.h>

    int
    DB_SITE->remove(DB_SITE *site);

The `DB_SITE->remove()` method removes the site from the replication group. If called at the master site, repmgr updates the membership database directly. If called from a client, this method causes a request to be sent to the master to perform the operation. The method then awaits confirmation.

The DB_SITE handle must not be accessed again after this method is called, regardless of the return value.

The `DB_SITE->remove()` method returns a non-zero error value on failure and 0 on success.

### Errors

The `DB_SITE->remove()` method may fail and return one of the following non-zero errors:

#### DB_REP_UNAVAIL

The master updated the database but did not receive enough acknowledgements from clients sufficient to meet the current ack policy.

### Class

DB_SITE

### See Also

Replication and Related Methods

Prev | Up | Next
DB_SITE->get_eid() | Home | DB_SITE->set_config()