Skip to main content
DELETE
/
files
/
cleanup
Cleanup Expired Files
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
  }
}

Authorizations

X-API-Key
string
header
required

API key for authentication

Response

Cleanup completed successfully

files_deleted
integer

Number of files successfully deleted

bytes_freed
integer

Total bytes freed in storage

files_skipped
integer

Number of files skipped during cleanup

skipped_reasons
object

Breakdown of why files were skipped