function deleteImageStorageFilesStrict
deleteImageStorageFilesStrict(image: ImageWithStorage): Promise<void>

Delete an image's storage files, throwing if any file could not be removed (a file that is already gone counts as success, so retries are safe). Unlike deleteImageStorageFiles, this surfaces failures so the caller can keep the image's DB record for a later retry instead of orphaning the stored files under a deleted record.

Parameters

image: ImageWithStorage

Return Type

Promise<void>

Usage

import { deleteImageStorageFilesStrict } from "doc.ts";