mc admin replicate remove

Alias: mc admin replicate rm Removes one or more sites from a site replication configuration.

Remember, if you intend to re-add the site to a site replication configuration in the future, it must be empty of replicable data.

Syntax

The command has the following syntax:

mc [GLOBALFLAGS] admin replicate rm      \
                            TARGET       \
                            ALIAS1       \
                            [ALIAS2...]  \
                            --all        \
                            --force

Parameters

TARGET

Required

The alias of an active MinIO AIStor deployment participating in the site replication to target. Do not use an alias of a deployment to be removed, unless removing all sites from site replication.

ALIAS

Optional

The alias of an active MinIO AIStor deployment to remove from a site replication configuration. May be repeated to remove additional sites.

--all

Optional

Include this flag to remove all sites configured for site replication and end the site replication configuration.

--force

Required

This flag forces the removal of the specified peer site(s) from the site replication configuration.

Global flags

This command supports any of the global flags.

Examples

Remove site replication for all connected sites for an existing site replication configuration that includes myaistor2. This deletes the site replication configuration for all participating sites.

mc admin replicate rm      \
                   myaistor2  \
                   --all   \
                   --force

Remove the sites with alias names myaistor5 and myaistor6 from an existing site replication configuration that includes myaistor2.

mc admin replicate rm      \
                   myaistor2  \
                   myaistor5  \
                   myaistor6  \
                   --force