Time to Live (TTL)
Items can have a time-to-live (TTL), also known as an expiration time. After expiration time passes, the item will be automatically deleted from the system. TTLs can be configured via the ttl
attribute of an Item type definition. A TTL may be a specific timestamp field of an Item or can be calculated relative to another field or metadata property of an Item. It is important to note that a TTL value is only guaranteed to be respected to the nearest second, and that a zero value in a field used in the TTL calculation disables the TTL. The examples below demonstrate this in more detail:
An Item with a TTL that expires a constant two hours after its creation:
An Item with a TTL that expires a constant two days after its latest modification:
An Item with a TTL that expires an arbitrary duration (supplied in the ttlDebounceDuration
field) from its latest modification.
An Item with an exact (but arbitrary) timestamp TTL.