mc replicate rm 子命令用来删除服务器端复制配置规则,语法如下:
C:\> mc replicate rm -h NAME: mc replicate rm - remove a server side replication configuration rule USAGE: mc replicate rm TARGET FLAGS: --config-dir value, -C value path to configuration folder (default: "C:\\Users\\Administrator\\mc") --quiet, -q disable progress bar display --no-color disable color theme --json enable JSON lines formatted output --debug enable debug output --insecure disable SSL certificate verification --id value id for the rule, should be a unique value --force force remove all the replication configuration rules on the bucket --all remove all replication configuration rules of the bucket, force flag enforced --help, -h show help
(1)删除存储桶 “mybucket” 上别名 “myminio” 的复制配置规则,规则 ID 为 “bsib5mgt874bi56l0fmg”。
C:\> mc replicate rm --id "bsib5mgt874bi56l0fmg" myminio/mybucket
(2)删除存储桶 “mybucket” 上别名 “myminio” 的所有复制配置规则,--force 标志是必需的。
C:\> mc replicate rm --all --force myminio/mybucket