Method
DELETE /v1/gallery/files/:id
Path Parameters
Gallery file ID.
Headers
Bearer token (e.g.
Authorization: Bearer YOUR_API_KEY)curl -X DELETE "https://api.voyantcloud.com/v1/gallery/files/gal_file_123" \
-H "Authorization: Bearer $VOYANT_API_KEY"
{
"message": "File deletion scheduled",
"status": "scheduled",
"fileId": "gal_file_123"
}
Schedule deletion of a gallery file (asynchronous cleanup).
DELETE /v1/gallery/files/:id
Authorization: Bearer YOUR_API_KEY)curl -X DELETE "https://api.voyantcloud.com/v1/gallery/files/gal_file_123" \
-H "Authorization: Bearer $VOYANT_API_KEY"
{
"message": "File deletion scheduled",
"status": "scheduled",
"fileId": "gal_file_123"
}
status: deleting, is queued for removal from storage, and a gallery.file.deleted webhook fires after the background job finishes.