Cloudflare Enablement
R2
Testing
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:

List buckets in the current account:

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

​​ Notes

  • Bucket names and buckets are not public by default. To allow public access to a bucket, visit the public bucket documentation.
  • Invalid (unauthorized) access attempts to private buckets do not incur R2 operations charges against that bucket. Refer to the R2 pricing FAQ to understand what operations are billed vs. not billed.
  • The TLS (SSL) certificate created for each R2 bucket uses a wildcard certificate of the form *.r2.cloudflarestorage.com, which prevents account IDs and names from showing up in Certificate Transparency logs.