mc rb

Removes buckets from ..

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.
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.