Upload supports Time To Live (TTL) rules for files. This allows you to automatically delete files after a certain period of time.
Navigate to: https://upload.io/dashboard/rules/ttls
Define a TTL rule to delete files uploaded with the my_example_project tag after 1 hour:
Note: TTL rules only take effect on files uploaded after the TTL rule is created/updated.
To use your TTL rule, you must tag your uploads with the my_example_project tag.
You can tag uploads automatically via your API key's settings:
Navigate to: https://upload.io/dashboard/security/api_keys
This will automatically tag all uploads (made using this API key) with the my_example_project tag:
After saving changes to your API key, all uploads made using this API key will expire after 1 hour.
Note: files are deleted approximately 15 minutes after the TTL expires. For example, a TTL of 60 minutes will typically result in files being deleted 75 minutes after being uploaded. This delay is subject to change and is likely to be reduced in the future.