{"id":431,"date":"2026-04-30T00:00:00","date_gmt":"2026-04-30T00:00:00","guid":{"rendered":"https:\/\/wordpress.securinsight.ca\/index.php\/2026\/04\/30\/r2-empty-buckets-and-delete-folders-from-the-r2-dashboard-2\/"},"modified":"2026-04-30T00:00:00","modified_gmt":"2026-04-30T00:00:00","slug":"r2-empty-buckets-and-delete-folders-from-the-r2-dashboard-2","status":"publish","type":"post","link":"https:\/\/wordpress.securinsight.ca\/index.php\/2026\/04\/30\/r2-empty-buckets-and-delete-folders-from-the-r2-dashboard-2\/","title":{"rendered":"R2 &#8211; Empty buckets and delete folders from the R2 dashboard"},"content":{"rendered":"<p>You can now empty an entire <a href=\"https:\/\/developers.cloudflare.com\/r2\/\">R2<\/a> bucket or delete folders directly from the dashboard. Emptying a bucket is required before you can delete it. Previously, this required scripting or configuring <a href=\"https:\/\/developers.cloudflare.com\/r2\/buckets\/object-lifecycles\/\">lifecycle rules<\/a>. Now, the dashboard can handle it in a single action.<\/p>\n<h4>Empty a bucket<\/h4>\n<p>Go to your bucket&#8217;s <strong>Settings<\/strong> tab and select <strong>Empty<\/strong> under the <strong>Empty Bucket<\/strong> section. This deletes all objects in the bucket while preserving the bucket and its configuration. For large buckets, the operation runs in the background and the dashboard displays progress.<\/p>\n<p>Emptying a bucket is also a prerequisite for deleting it. The dashboard now guides you through both steps in one place.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/developers.cloudflare.com\/_astro\/empty-bucket-changelog.DjuMZppm_11Omax.webp\" alt=\"Empty Bucket and Delete Bucket sections in the R2 dashboard Settings tab\" \/><\/p>\n<h4>Delete folders<\/h4>\n<p>R2 uses a flat object structure. The dashboard groups objects that share a common prefix into folders when the <strong>View prefixes as directories<\/strong> checkbox is selected. Deleting a folder removes every object under that prefix.<\/p>\n<p>From the <strong>Objects<\/strong> tab, you can select one or more folders and delete them alongside individual objects.<\/p>\n<p>For step-by-step instructions, refer to <a href=\"https:\/\/developers.cloudflare.com\/r2\/buckets\/delete-buckets\/\">Delete buckets<\/a> and <a href=\"https:\/\/developers.cloudflare.com\/r2\/objects\/delete-objects\/\">Delete objects<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>You can now empty an entire R2 bucket or delete folders directly from the dashboard. Emptying a bucket is required before you can delete it. Previously, this required scripting or configuring lifecycle rules. Now, the dashboard can handle it in a single action. Empty a bucket Go to your bucket&#8217;s Settings tab and select Empty [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-431","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/posts\/431","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/comments?post=431"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/posts\/431\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/media?parent=431"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/categories?post=431"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/tags?post=431"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}