Maintenance

Purge files past the retention window

Destructive: permanently deletes objects older than the workspace's retentionDays, then reconciles usage. Requires a bearer token with files:delete; browser sessions are not accepted. The response is either { skipped: true } or a purge and reconciliation result.

post/v1/workspaces/{workspace}/usage/purge-expired

Request

  • Base URL: https://api.uploads.sh
  • URL: https://api.uploads.sh/v1/workspaces/{workspace}/usage/purge-expired
  • Auth: HTTP bearer

Response

Purge result or a skipped result.

Changes

No recorded changes to this operation across all 1 revision of this API.