DEL
https://api.vaelor.chat/v1/images/{id}Permanently deletes an image and its stored file. Signed URLs you already issued stop working. Credits aren't refunded.
Path parameters#
idstringRequiredThe image ID.
Example#
curl -X DELETE https://api.vaelor.chat/v1/images/3b8f7a2e-91c4-4d0a-8f6e-0c5d2a9e7b14 \
-H "Authorization: Bearer $VAELOR_API_KEY"await fetch(`https://api.vaelor.chat/v1/images/${imageId}`, {
method: 'DELETE',
headers: { Authorization: `Bearer ${process.env.VAELOR_API_KEY}` }
})requests.delete(
f"https://api.vaelor.chat/v1/images/{image_id}",
headers={"Authorization": f"Bearer {os.environ['VAELOR_API_KEY']}"},
)Response200
JSON
{ "ok": true }Errors#
| Status | When |
|---|---|
404 | No image with this ID exists in your library. |