Removes a Product image and deletes it from the Content Delivery Network (external images are not deleted). Deletion from the CDN is not instant, which means the image file itself will stay available for some time after the deletion. Either variantId or sku is required.

interface ProductRemoveImageAction {
    action: "removeImage";
    imageUrl: string;
    sku?: string;
    staged?: boolean;
    variantId?: number;
}

Properties

action: "removeImage"
imageUrl: string

The URL of the image to remove.

sku?: string

The sku of the ProductVariant to update.

staged?: boolean

If true, only the staged image is removed. If false, both the current and staged image is removed.

variantId?: number

The id of the ProductVariant to update.

Generated using TypeDoc