This script / procedure outlines the process to delete assets which have been offline before a particular date.
Prerequisite tools
iusql
urestapi
Procedure
Download api key from Uptycs UI
Download attached script, delete_offline_assets_since.sh
chmod +x delete_offline_assets_since.sh
Execute the script using following parameters
./delete_offline_assets_since.sh <api_key_file> "<date>"
e.g. ./delete_offline_assets_since.sh my_api_key_file.json "2019-01-01"