Anchor to section titled 'undefined'

productDeleteMedia
mutation

Requires write_products access scope. Also: The user must have a permission to delete media from a product.

Deletes media for a product.


Anchor to mediaIds
mediaIds
required

The media IDs to be deleted.

Anchor to productId
productId
required

Specifies the product ID from which the media will be deleted.


Was this section helpful?

List of media IDs which were deleted.

List of product image IDs which were deleted.

The list of errors that occurred from executing the mutation.

The product associated with the deleted media.

The list of errors that occurred from executing the mutation. Use mediaUserErrors instead.


Was this section helpful?