Skip to main content

Delete Files

DELETE/api/v1/media/files

Delete one or more files from your dedicated SpiderMedia bucket.

Request

keysarrayrequired

Array of file keys to delete (e.g., ["logos/old-logo.png", "images/temp.jpg"])

Response

successboolean

Whether the deletion succeeded

deletedarray

Array of successfully deleted file keys

failedarray

Array of file keys that failed to delete (if any)

Example

curl -X DELETE "https://spideriq.ai/api/v1/media/files" \
-H "Authorization: Bearer cli_abc123:sk_xxx:secret_xxx" \
-H "Content-Type: application/json" \
-d '{"keys": ["logos/old-logo.png", "images/temp.jpg"]}'

Response Example

{
"success": true,
"deleted": ["logos/old-logo.png", "images/temp.jpg"],
"failed": []
}