rc rb removes a bucket. It is a legacy-compatible command; prefer rc bucket remove for new scripts.
rc [GLOBAL OPTIONS] rb [OPTIONS] <ALIAS/BUCKET>| Parameter | Description |
|---|---|
ALIAS/BUCKET |
Bucket path to remove. |
--force |
Delete objects before removing a non-empty bucket. |
--dangerous |
Remove the bucket even when incomplete multipart uploads exist. |
rc rb local/empty-bucket
rc bucket remove local/old-bucket --forceWithout --force, the backend must allow deletion of the bucket as-is. Use destructive options carefully; they can delete object data before removing the bucket.
Global options shown in command syntax use the same meaning everywhere:
| Option | Description |
|---|---|
--format auto|human|json |
Select automatic, human-readable, or JSON output. |
--json |
Emit JSON output where the command supports structured output. |
--no-color |
Disable terminal colors. |
--no-progress |
Disable progress bars. |
-q, --quiet |
Suppress non-error output. |
--debug |
Enable debug logging. |