Is it correct that there is currently no way to assign a TTL to a Vercel Blob object so it’s automatically deleted after X time, similar to AWS lifecycle rules? If not, has anybody found a clean workaround to say delete images after 1 year? Maybe just a cron job that looks at blob metadata or pulls from the DB for when image was stored? Just looking for the “correct” approach here.
Hi Justin, you are right.
Blob doesn’t have a TTL setting, but you could iterate and delete when they’re older than X. You could configure your Blob keys to have a date in them (2025/07/22/file.jpg), so that you can easily find and prune old blobs.