Delete Asset
Permanently delete an image from your storage bucket. This action is irreversible.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | String | The 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.