# Sandboxes now expire based on last use

**Published:** June 29, 2026 | **Authors:** Marc Codina Segura

---

Vercel Sandbox snapshots now expire based on when they were last used, not when they were created. Active snapshots stay alive as long as workflows depend on them, while unused snapshots expire on their retention policy.

```typescript
// Now expires 7 days after last use
await Sandbox.update({
  snapshotExpiration: 7 * 24 * 60 * 60 * 1000,
});
```

Every time a snapshot is used, its expiration timer resets. This lets you set shorter retention windows without worrying that a snapshot will disappear between sessions, making it safer to build long-running workflows on top of Sandbox persistence.

Learn more about Sandbox snapshots in the [documentation](https://vercel.com/docs/vercel-sandbox/concepts/snapshots).

---

📚 **More updates:** [View all changelog entries](/changelog/sitemap.md) | [Blog](/blog/sitemap.md)