auto_delete_seconds and the platform deletes the instance once it has stayed asleep or stopped for that long, so a sandbox nobody came back to stops costing anything.
- The clock runs only while the instance is
sleepingorstopped. A running instance is never deleted, so pair it with auto-sleep: an instance that never sleeps is deleted only after you stop it. - Waking or starting the instance resets the clock. The next sleep or stop starts it again from zero.
- The value is an integer from
3600(one hour) to31536000(one year). The instance is deleted within an hour of the time running out. null, the default, keeps the instance until you delete it.
PATCH /v1/instances/{id}. Set on an instance that is already asleep or stopped, the clock starts at that call. A fork takes its source’s value unless you send one.
An auto-deleted instance goes the way DELETE /v1/instances/{id} takes one: its URLs stop working, its billing stops, and your webhooks receive the deleted status.