Skip to main content
DELETE
Delete file(s) by key(s)

Authorizations

x-api-key
string
header
required

WorkOS API key for authentication

Body

application/json
keys
string[]
required

Array of file keys/paths in storage. Each key must start with a UUID that matches the organization ID.

Minimum array length: 1

File key/path in storage (must start with organization UUID)

Response

Delete operation completed (may include partial success)

success
boolean
required

Indicates if the request was processed

Example:

true

results
object[]
required

Array of results for each key. Each item may be a success object or an error object.

Successful deletion

summary
object
required

Summary of the deletion operation