Delete objects
You can delete objects from your bucket from the Cloudflare dashboard or using the Wrangler.
-
In the Cloudflare dashboard, go to the R2 object storage page.
Go to R2 object storage -
Locate and select your bucket.
-
Locate the object you want to delete. You can select multiple objects to delete at one time.
-
Select your objects and select Delete.
-
Confirm your choice by selecting Delete.
You can delete an object directly by calling delete
against a {bucket}/{path/to/object}
.
For example, to delete the object foo.png
from bucket test-bucket
:
wrangler r2 object delete test-bucket/foo.png
Deleting object "foo.png" from bucket "test-bucket".Delete complete.
For information on R2 Workers Binding API, refer to R2 Workers API reference.
Was this helpful?
- Resources
- API
- New to Cloudflare?
- Directory
- Sponsorships
- Open Source
- Support
- Help Center
- System Status
- Compliance
- GDPR
- Company
- cloudflare.com
- Our team
- Careers
- © 2025 Cloudflare, Inc.
- Privacy Policy
- Terms of Use
- Report Security Issues
- Trademark
-