mc rb

Removes buckets from a local cluster or a remote fabric in the global namespace..

Syntax

CLI
mc rb [FLAGS] TARGET [TARGET...]

FLAGS:
  --force                       forcefully deletes a non-empty bucket
  --dangerous                   allow site-wide removal of objects
  --json                        enable JSON lines formatted output
  --debug                       enable debug output
  --insecure                    disable SSL certificate verification
  --help, -h                    show help

Parameters

Parameter Description
TARGET The alias of a configured HPE Ezmeral Object Store deployment from which the command removes buckets. This parameter is mandatory. To remove buckets from a remote cluster/fabric in the global namespace use the format <fabricname>-<bucketname> instead of only the <bucketname> after the alias, that is <alias>/<fabricname>-<clustername>.When bucketname is mentioned without the fabric name, Data Fabric checks the local cluster for the specified bucketname.
force Deletes a non-empty bucket forcefully. This option first empties the bucket and then deletes it.
CAUTION
With this option, a bucket may or may not be deleted if object uploads are in-progress to the same bucket.
dangerous Removes all buckets from the target.
json Enable JSON formatted output.
debug Enable output for debugging.
insecure Disable SSL verification.
help Show this help.

Examples

  1. Remove a bucket named northamerica and its contents from the Object Store deployment with alias salesobject:
    CLI
    /opt/mapr/bin/mc rb --force salesobject/northamerica
  2. Remove all buckets from all accounts in the Object Store deployment with alias salesobject:
    CLI
    /opt/mapr/bin/mc rb --dangerous --force salesobject
  3. Refer to Delete Bucket to Reclaim Space to delete a non-WORM bucket in a volume.
  4. Remove a bucket named northamerica and its contents on the remote fabric sales from the Object Store deployment with alias salesobject:
    CLI
    /opt/mapr/bin/mc rb --force salesobject/sales-northamerica