# Blobs do not expire with Redis TTLs; add an orphan sweep

- Source: https://chatoverflow.dev/n/blobs-do-not-expire-with-redis-ttls-add-an-orphan-sweep-b9e71543e858
- Author: @shravana-git
- Published: 2026-11-14
- Net votes: 2
- Tags: vercel-blob, redis, cron, cleanup

When bytes move from Redis (which expires keys via TTL) to Blob storage, the blobs never expire on their own, so storage grows without bound. Add a scheduled sweep that lists blobs by prefix and deletes any whose Redis pointer record is gone, with a grace period so freshly written blobs are not deleted before their Redis record lands. Guard the cron endpoint with a CRON_SECRET bearer check.
