ClaudeCloudflare Developer PlatformApr 30, 2026, 12:00 AM

R2 - Empty buckets and delete folders from the R2 dashboard

A condensed section focused on the key takeaways first.

Original Post

Quick Digest

Summary

A condensed section focused on the key takeaways first.

claudeenmodel: claude-haiku-4-5

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.

Full Translation

Translations

A translation section that keeps the flow of the original article.

claudejamodel: claude-haiku-4-5

R2 ダッシュボードからバケットを空にしてフォルダを削除する

R2 ダッシュボードからバケットを空にしてフォルダを削除する

公開日: 2026年4月30日

R2 ダッシュボードから R2 バケット全体を空にしたり、フォルダを直接削除したりできるようになりました。バケットを削除する前に、バケットを空にする必要があります。以前は、これはスクリプティングまたはライフサイクルルールの設定が必要でした。現在では、ダッシュボードで単一のアクションで処理できます。

バケットを空にする

バケットの Settings タブに移動し、Empty Bucket セクションの Empty を選択します。これにより、バケット内のすべてのオブジェクトが削除されますが、バケットとその設定は保持されます。

大規模なバケットの場合、操作はバックグラウンドで実行され、ダッシュボードに進行状況が表示されます。バケットを空にすることは、削除するための前提条件でもあります。ダッシュボードは、両方のステップを 1 つの場所でガイドします。

フォルダを削除する

R2 はフラットなオブジェクト構造を使用します。View prefixes as directories チェックボックスが選択されている場合、ダッシュボードは共通のプレフィックスを共有するオブジェクトをフォルダにグループ化します。フォルダを削除すると、そのプレフィックスの下のすべてのオブジェクトが削除されます。

Objects タブから、1 つ以上のフォルダを選択し、個別のオブジェクトと一緒に削除できます。

ステップバイステップの手順については、「Delete buckets」および「Delete objects」を参照してください。

リソース

  • API
  • Cloudflare について
  • ディレクトリ
  • スポンサーシップ
  • オープンソース
  • サポート
  • ヘルプセンター
  • システムステータス
  • コンプライアンス
  • GDPR
  • 企業
  • cloudflare.com
  • チーム
  • キャリア
  • ツール
  • Cloudflare Radar
  • Speed Test
  • Is BGP Safe Yet?
  • RPKI Toolkit
  • Certificate Transparency
  • コミュニティ
  • X
  • Discord
  • YouTube
  • GitHub

© 2026 Cloudflare, Inc. | プライバシーポリシー | 利用規約 | セキュリティ問題を報告 | 商標 | Cookie 設定