Skip to main content

Type Alias: ImageWidgetRemoveImages()

ImageWidgetRemoveImages = (fileIds) => Promise<void>

Function

Function signature for removing images from the image library.

This function deletes selected images from the image library, removing them from the available options for image-based customization. It only removes the references from the current session, not from persistent storage.

Parameters

fileIds

string[]

Array of image IDs to remove from the library

Returns

Promise<void>

Promise that resolves when the images have been removed

Example

// Remove two images from the library
imageWidgetRemoveImages(['image-123', 'image-456']);