Skip to main content
DELETE
Delete files

Authorizations

Authorization
string
header
required

An API key from Settings → API keys, sent as Authorization: Bearer yk_live_…. Scopes: transfers:read, transfers:write, collections:read, collections:write, contacts:read, contacts:write, webhooks:read, webhooks:write. A write scope implies read of the same resource.

Path Parameters

id
string
required

Collection id. Never a slug — see the Concepts page.

Body

application/json
fileIds
string[]
required
Required array length: 1 - 500 elements
Minimum string length: 1

Response

How many were deleted.

deleted
integer
required

How many files were deleted.

Required range: x >= 0