DELETE /v1/images/:id

Delete Asset

Permanently delete an image from your storage bucket. This action is irreversible.

Path Parameters

ParameterTypeDescription
idStringThe image filename/ID returned from the upload response.

Example: cURL

curl -X DELETE \
  "https://imgnodus-api-411853553644.us-central1.run.app/v1/images/1775929784157_photo.webp" \
  -H "X-API-Key: IR_KEY_xxxxxxxxxx"

Example: JavaScript

const imageId = '1775929784157_photo.webp';
const res = await fetch(`https://imgnodus-api-411853553644.us-central1.run.app/v1/images/${imageId}`, {
  method: 'DELETE',
  headers: { 'X-API-Key': process.env.IMGNODUS_API_KEY }
});
const { success } = await res.json();

Response

{
  "success": true,
  "message": "Image deleted successfully",
  "id": "1775929784157_photo.webp"
}
🗑️ Deletion is permanent. Deleted images cannot be recovered. Consider archiving before deleting production assets.