billflare.

Free tier storage fills up with old data: expire KV, R2 and D1 entries with a nightly cron

风易 (@Michael_liyang) says what fills the free tier first is storage, not request quota: KV caches, R2 backups and D1 logs only grow. He sets expiry on cache writes and runs a nightly cron that soft-deletes, confirms and then deletes expired keys and files.

Products
KVR2D1Workers
Source
Author experience𝕏 post
Author
风易 (@Michael_liyang)

Key points

  • His point: KV caches, R2 backups and D1 logs are written but never removed, so free storage is eventually used up.
  • His steps: 1) set an expiry time when writing caches; 2) run a cron every early morning to scan expired keys and files; 3) soft-delete first, hard-delete once nothing references them, and record a D1 log entry for each deletion.
  • Flow as written: Cron → scan expired → soft delete → confirm → hard delete → log. He concludes that without cleanup the free tier eventually becomes a paid tier.

Original sources

  1. Published

    Original post

    Read on 𝕏

    风易 (@Michael_liyang) says what fills the free tier first is storage, not request quota: KV caches, R2 backups and D1 logs only grow. He sets expiry on cache writes and runs a nightly cron that soft-deletes, confirms and then deletes expired keys and files.

    风易 | AI 工具链

    @Michael_liyang · Original 𝕏 post

    先说结论:免费档先被旧数据占满的不是额度,是存储。KV 缓存、R2 备份、D1 日志只进不出,免费空间迟早被吃光。做法:1 写缓存时带过期时间;2 每天凌晨一个 Cron 扫过期键和过期文件;3 先软删,确认无引用再真删,删完记一条 D1 日志。链路:Cron→扫过期→软删→确认→真删→记日志。过期不清理,免费档迟早变付费档。
Author experienceWorkers +1

棈澧: after a Worker bill “went up tenfold” overnight, Spend Management can pause Workers and Durable Objects

棈澧 (@hodu382759) wrote on 16 November 2026 that a Worker bill had “gone up tenfold” after a night’s sleep, with no dollar amount, and pointed to Spend Management launched on 13 November. The post says a limit stops new requests and cron jobs while static assets stay up, that the feature is beta and covers only Workers and Durable Objects (not KV or R2), and that blocking is not instant, so the official docs do not guarantee the invoice will not exceed the cap. The author describes the audience as Workers Paid users; official docs say pay-as-you-go.

R2

maisui: a migration script's recursive R2 listings produced 14.38M Class A operations, about $63; a one-time goodwill credit requested.

Cloudflare Community user maisui says that on November 11–12, 2026, while migrating about 425 GB (1.31M objects) out of an R2 bucket, a script listed the bucket recursively through the S3 API without fast-list; with nearly one object per directory each listing issued about 1.31M Class A operations, and about 11 runs produced 14.38M Class A operations (13.38M billable), about USD 63 on the cycle invoice. The author calls it a one-off script defect, says the usage alert only fired after daily aggregation, has fixed the script and set low billing alerts, and asks for a one-time goodwill credit; the Free plan support portal did not show a Billing case form.

Author experienceWorkers +3

fantuantalk: apply for Cloudflare for Startups $10,000 credits while bootstrapped

@fantuantalk’s X article walks through applying to Cloudflare for Startups as a self-funded builder: $10,000 / $100,000 / $350,000 credit tiers, one-year non-cash credits usable on Workers/R2/D1/Workers AI (with product-specific caps; AI Gateway not covered), form steps, and a note that a payment method is still required so overages or ineligible charges can bill.