Version 4.x - What's New?
The IoT File Service empowers users with efficient file management capabilities tailored for assets. This service offers a user-friendly interface for data management, file searching, and downloading files associated with specific assets or agents. As the usage of the File Service grows over time, it is essential to address storage limitations to ensure optimal performance.
With the introduction of version 4.x, users gain access to the IoT File Service Bulk Delete API. This API enables users to systematically remove files from storage at regular intervals, helping maintain service performance. To initiate bulk file deletion, users are required to create a Time To Live (TTL) rule. The TTL rule specifies the duration after which files are automatically deleted by the system. This rule operates on a daily basis, identifying and removing files that meet the criteria outlined in the rule.
The V4.x API is designed with a primary focus on delivering intelligent and enhanced performance compared to the current Bulk Delete APIs.
Key features include:
- The V4.x API streamlines file storage maintenance by providing automated file deletion capabilities, helping free up storage space and ensuring capacity for new files.
- Users can easily configure file deletion criteria by specifying the number of days as the deletion parameter.
- The API allows users to define deletion rules for selected assets, enabling a more tailored approach to file management.
- The API efficiently handles file deletion operations across large volumes of files, reducing the need for manual intervention and simplifying storage management.
- Regular file cleanup helps optimize storage utilization and can contribute to improved system performance.
Concurrently, given that this involves the deletion of files from storage, it is crucial to take certain considerations into account to prevent any unforeseen behavior.
- Deletion operations are executed based on the last updated date of files in storage. Performing operations on older files that meet the deletion criteria may result in unpredictable outcomes, as the last updated date of the file would be altered
- The file storage system operates on an eventual consistency model. Although there may be temporary inconsistencies, both files and metadata will eventually attain a consistent state
- Any modifications made to the Time To Live (TTL) rule will only take effect during the subsequent rule execution cycle. Users should be aware that changes to the rule may not be immediately reflected
We recommend users to make use of File Service Bulk Delete APIs to delete the files from the storage for improved performance. For information on how to use the 4.x API, refer to Bulk Delete Operation.
Bulk Delete Operation¶
Process flow¶
Create TTL Rule¶
The user can create TTL rule by providing the following details:
- Specific path (asset)
- Number of days after which data should be deleted