Delete file(s) by key(s)
Deletes one or more files by key from the authenticated organization. Validates API key using WorkOS, extracts organization ID, verifies each file key starts with the organization UUID and belongs to the organization, then deletes from S3 storage and database. Each file key must start with a valid UUID that matches the organization ID. The file key can contain slashes (e.g., ‘org-id/path/to/file.png’).
Authorizations
WorkOS API key for authentication
Body
Array of file keys/paths in storage. Each key must start with a UUID that matches the organization ID.
1File key/path in storage (must start with organization UUID)
Response
Delete operation completed (may include partial success)