R2 - Empty buckets and delete folders from the R2 dashboard
Key Points
- Empty R2 buckets directly from dashboard
- Delete folders and objects in single action
- Background processing for large bucket operations
Summary
Cloudflare R2 now supports emptying entire buckets and deleting folders directly from the dashboard. Previously, these operations required scripting or lifecycle rule configuration.
Key Points
- Empty buckets: Navigate to bucket Settings tab and select Empty under the Empty Bucket section. Deletes all objects while preserving bucket configuration and settings. Large bucket operations run in the background with progress tracking.
- Delete folders: Select one or more folders from the Objects tab to delete them alongside individual objects. Folder deletion removes all objects under that prefix.
- Prerequisite for deletion: Emptying a bucket is now required before bucket deletion, with the dashboard guiding users through both steps in one workflow.
- Flat structure support: R2's flat object structure is represented as folders in the dashboard when View prefixes as directories is enabled.