Skip to main content

Bucket Management

Create a Bucket

To create a new bucket you can either:

  • Create a new bucket through the Snowcell Console
  • Use the create-bucket command through the Snowcell CLI or the Cloud API. This will create a bucket with the user-provided name and store its actual name in the database.
snc create-bucket --bucket_name YOUR_BUCKET_NAME

Get Actual Bucket Name

The user-friendly name of the bucket is not the same as the one stored in the Backblaze database. To fetch Fetch the actual bucket name used in Backblaze B2, you can use the CLI:

snc get-actual-bucket-name --bucket_name YOUR_BUCKET_NAME

Get Bucket Statistics

Retrieve statistics for a specific bucket, including the total size and file count.

snc get-bucket-statistics --bucket_name YOUR_BUCKET_NAME

Delete All Files in a Bucket

To delete all files within a specific bucket, use the delete-all-files command.

snc delete-all-files --bucket_name YOUR_BUCKET_NAME

Note that we will not be able to retrieve your data again after running this command.

Delete a Bucket

Delete an entire bucket from your storage.

snc delete-bucket --bucket_name YOUR_BUCKET_NAME

Note that deleting a bucket is only available if it is empty.