ClaudeCloudflare Developer PlatformApr 22, 2026, 12:00 AM

R2 - R2 Data Catalog snapshot expiration now removes unreferenced data files

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 Data Catalog snapshot expiration now removes unreferenced data files

Key Points

  • Automatic removal of unreferenced data files during snapshot expiration
  • Eliminates manual maintenance jobs and reduces storage costs
  • Simplified configuration with Wrangler CLI commands

Summary

Cloudflare R2 Data Catalog, a managed Apache Iceberg catalog, now automatically removes unreferenced data files during snapshot expiration. This eliminates manual maintenance overhead and reduces storage costs.

Key Points

  • Automatic cleanup: Snapshot expiration now removes both metadata files (manifests, manifest lists) and orphaned data files in a single operation
  • Cost reduction: Stale data files no longer consume storage after being dereferenced by active snapshots
  • Operational simplification: Eliminates the need to manually run remove_orphan_files or expire_snapshots through Spark or other engines
  • Easy enablement: Configure with npx wrangler r2 bucket catalog snapshot-expiration enable command
  • Flexible retention: Set expiration policies with --older-than-days and --retain-last parameters

Configuration Example

Enable catalog-level snapshot expiration to automatically clean up snapshots older than 7 days while retaining the last 10 snapshots.

Full Translation

Translations

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

claudejamodel: claude-haiku-4-5

R2 - R2 Data Catalogスナップショット有効期限切れが参照されていないデータファイルを削除するようになりました

R2 Data Catalogスナップショット有効期限切れが参照されていないデータファイルを削除するようになりました

2026年4月22日

R2に組み込まれた管理型Apache IcebergカタログであるR2 Data Catalogは、自動スナップショット有効期限切れ時に参照されていないデータファイルを削除するようになりました。この改善によりストレージコストが削減され、削除されたデータから領域を回収するための手動メンテナンスジョブを実行する必要がなくなります。

以前の動作

これまで、スナップショット有効期限切れはマニフェストやマニフェストリストなどのIcebergメタデータファイルのみをクリーンアップしていました。アクティブなスナップショットによって参照されなくなったデータファイルは、Sparkなどのエンジンを使用してremove_orphan_filesまたはexpire_snapshotsを手動で実行するまで、R2ストレージに残ったままでした。これには追加の運用オーバーヘッドが必要であり、古いデータファイルがストレージを消費し続けていました。

新しい動作

スナップショット有効期限切れは、メタデータとデータファイルのクリーンアップを自動的に処理するようになりました。スナップショットが有効期限切れになると、保持されているスナップショットによって参照されなくなったデータファイルはR2ストレージから削除されます。

使用方法

# カタログレベルのスナップショット有効期限切れを有効化
npx wrangler r2 bucket catalog snapshot-expiration enable my-bucket \
  --older-than-days 7 \
  --retain-last 10

詳細情報

スナップショット有効期限切れおよび他の自動メンテナンス操作の詳細については、テーブルメンテナンスドキュメントを参照してください。