Cloudflare Docs
R2
Edit this page on GitHub
Set theme to dark (⇧+D)

Create buckets

You can create a bucket from the Cloudflare dashboard or using Wrangler.

​​ Bucket-Level Operations

Create a bucket:

$ wrangler r2 bucket create YOUR_BUCKET_NAME

List the buckets in the current account:

$ wrangler r2 bucket list

Delete a bucket. Note that the bucket must be empty (all objects must be deleted).

$ wrangler r2 bucket delete BUCKET_TO_DELETE