1
0
mirror of https://github.com/minio/docs.git synced 2025-05-06 15:39:22 +03:00
docs/source/reference/minio-mc/mc-replicate-rm.rst

3.9 KiB

mc replicate rm

minio

Table of Contents

mc replicate rm

Syntax

The mc replicate rm command removes a replication rule <minio-bucket-replication-serverside> from a MinIO bucket.

mc [GLOBALFLAGS] replicate rm FLAGS [FLAGS] ALIAS

EXAMPLE

The following command removes the replication rule with specified id from the mydata bucket on the myminio MinIO deployment:

mc replicate rm --id "c76um9h4b0t1ijr36mug" myminio/mydata

SYNTAX

The command has the following syntax:

mc [GLOBALFLAGS] replicate rm     \
                 --id "string"    \
                 [--all --force]  \
                 ALIAS

Parameters

ALIAS

Required the alias <alias> of the MinIO deployment and full path to the bucket or bucket prefix from which to remove the replication rule. For example:

mc replicate rm --id "ID" myminio/mybucket

--id

Required Specify the unique ID for a configured replication rule.

You can omit this option if specifying ~mc replicate rm --all

--all

Optional Removes all replication rules on the specified bucket. Requires specifying the ~mc replicate rm --force flag.

--force

Optional Required if specifying ~mc replicate rm --all .

Global Flags

Examples

Remove a Replication Rule from a Bucket

Use mc replicate rm to remote a bucket replication rule:

mc replicate rm --id "ID" ALIAS/PATH
  • Replace ID <mc replicate rm --id> with the unique ID of the replication rule to remove. Use mc replicate ls to list all replication rules for the bucket.
  • Replace ALIAS <mc replicate rm ALIAS> with the alias <mc alias> of the MinIO deployment.
  • Replace PATH <mc replicate rm ALIAS> with the path to the bucket or bucket prefix.

Remove All Replication Rules from a Bucket

Use mc replicate rm to list bucket replication rules:

mc replicate rm --all --force ALIAS/PATH
  • Replace ALIAS <mc replicate rm ALIAS> with the alias <mc alias> of the MinIO deployment.
  • Replace PATH <mc replicate rm ALIAS> with the path to the bucket or bucket prefix.

Behavior

Removing Replication Rules Does Not Affect Replicated Objects

Removing one or all replication rule for a bucket does not remove any objects already replicated under those rule(s).

Use The command or mc rb commands to remove replicated objects on the remote target. You can identify replicated objects using the X-Amz-Replication-Status metadata field where the value is REPLICA. Buckets which contain objects from multiple replication sources may require additional care and filtering to determine the source prior to removal.

S3 Compatibility