cURL
curl --request DELETE \ --url https://{base_url}/files/cleanup \ --header 'X-API-Key: <api-key>'
{ "files_deleted": 123, "bytes_freed": 123, "files_skipped": 123, "skipped_reasons": { "in_use_by_jobs": 123, "retention_policy": 123 } }
Remove expired files for the authenticated user
API key for authentication
Cleanup completed successfully
Number of files successfully deleted
Total bytes freed in storage
Number of files skipped during cleanup
Breakdown of why files were skipped
Show child attributes
Was this page helpful?