Skip to main content

Method

DELETE /v1/gallery/files/:id

Path Parameters

id
string
Gallery file ID.

Headers

Authorization
string
Bearer token (e.g. Authorization: Bearer YOUR_API_KEY)

Request Example

curl -X DELETE "https://api.voyantcloud.com/v1/gallery/files/gal_file_123" \
  -H "Authorization: Bearer $VOYANT_API_KEY"

Response

{
  "message": "File deletion scheduled",
  "status": "scheduled",
  "fileId": "gal_file_123"
}
Deletion is asynchronous. The file moves to status: deleting, is queued for removal from storage, and a gallery.file.deleted webhook fires after the background job finishes.