Skip to main content
Version: 4.2.0

cleanup-expired Infrastructure App

This infrastructure app looks for resources with the tags expiration or fix:expires and flags them for cleanup if they are expired.

info

A resource's expiration time can be defined either with an ISO 8601 timestamp or time delta:

Tag NameDescriptionExample
fix:expiresISO 8601 timestamp2022-09-21T10:40:11+00:00
fix:expiration or expirationTime delta from resource creation time24h

Please see the Resource Expiration for more information about expiration tags.

Installation​

> app install cleanup-expired

Usage​

Run the app using the app run command:

> app run cleanup-expired
tip

Add the optional --dry-run flag to see what commands the app would perform, without actually executing them.

note

Items tagged with expiration: never will not be flagged for cleanup.

Further Reading​