Vercel Blob now supports TTLs for automatic deletion
- Source
- vercel.com
- Author
- Agustin Falco
- Date

Context
Files stored in Vercel Blob, Vercel's file storage service, can now delete themselves. A TTL, short for time to live, is a countdown attached to a file: pass ttlDays when writing a blob, and Vercel deletes it that many days after upload, anywhere from 1 to 730 days. Vercel suggests it for files you would otherwise clean up yourself, such as session transcripts (the saved record of a chat or conversation), exports and temporary uploads. Without a TTL, removing those files takes a cleanup job or a manual delete.
The option works on put(), copy(), putImage(), multipart uploads and presigned upload URLs, which let a browser upload straight to storage. Each write result, and each head() lookup of an existing blob, now includes expiresAt, the date the blob is due for deletion. A TTL is not fixed once set. setTtl() extends, shortens or clears it on blobs that already exist, one URL or up to 1,000 at a time, without uploading them again. The changelog's install line points to @vercel/blob 2.9.0, and Vercel CLI 65.16.0 or later adds a --ttl-days flag and a set-ttl command for the same jobs from the terminal.
Setting a TTL costs one Advanced Operation for every started 60 days, on top of the write itself. A 7-day TTL therefore costs one operation and the 730-day maximum costs 13, while clearing a TTL and the scheduled deletions are free. Short-lived files cost the least to expire, and the charge grows with how far ahead the deletion is scheduled. The changelog says deletion happens that many days after upload but gives no detail on how quickly after expiresAt the file actually disappears.
- The TTL is counted from the blob's original upload date, and setTtl() can extend, shorten or clear it with null on blobs you already store, for one URL or up to 1,000 at a time, without re-uploading them.
- Vercel bills a TTL as one Advanced Operation per started 60-day block on top of the write, so a 7-day TTL costs one operation and the 730-day maximum costs 13, while clearing a TTL and the deletions themselves are free.
- The same controls exist outside code: Vercel CLI 65.16.0 and later accepts --ttl-days on blob put, put-image, copy and presign, and adds a set-ttl command with a --clear-ttl flag for existing blobs.
- AI agent — An AI system that doesn't just answer once but works toward a goal in a loop — taking actions, reading the results, and deciding what to do next.
Checking sign-in…
Loading comments…



