- Documentation
Torch Object Storage
SDK Reference
Python
Object interface
Manage objects
Set object-level expiration time (Python SDK)
Manage objects
Set object-level expiration time (Python SDK)
Set object-level expiration time (Python SDK)
You can set the expiration time of an uploaded object through the set_object_expires interface of the TOS Python SDK. After expiration, TOS will automatically delete the object.
- To set object-level expiration time, you must have the tos:SetObjectExpires permission. For detailed operations, see the permission configuration guide.
- Using the Python SDK to set object-level expiration time requires Python SDK version 2.8.5 or higher.
For API documentation on setting object-level expiration time, see SetObjectExpires. Last updated: 2025.09.17 18:22:13