Skip to content

metalcloud-cli bucket delete

Delete a bucket and all its contents

Permanently delete a bucket and all its contents from the specified infrastructure.

This command removes a bucket and all objects stored within it. This operation is irreversible and will permanently destroy all data in the bucket. Use with caution in production environments.

Required Arguments: infrastructure_id_or_label The ID or label of the infrastructure containing the bucket bucket_id The unique identifier of the bucket to delete

Examples:

Delete bucket with ID 42 from infrastructure 100

Section titled “Delete bucket with ID 42 from infrastructure 100”

metalcloud-cli bucket delete 100 42

metalcloud-cli bucket delete production bucket-abc123

metalcloud-cli bucket rm staging my-bucket-id

metalcloud-cli bucket delete infrastructure_id_or_label bucket_id [flags]
-h, --help help for delete
-k, --api_key string MetalCloud API key
-c, --config string Config file path
-d, --debug Set to enable debug logging
-e, --endpoint string MetalCloud API endpoint
-f, --format string Output format. Supported values are 'text','csv','md','json','yaml'. (default "text")
-i, --insecure_skip_verify Set to allow insecure transport
-l, --log_file string Log file path
-v, --verbosity string Log level verbosity (default "INFO")

Auto generated by spf13/cobra on 11-Aug-2025

Section titled “Auto generated by spf13/cobra on 11-Aug-2025”