Skip to main content
Log inSign up

Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.

mutationDeprecated

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

Deletes media for a product. Use fileUpdate instead.

[ID!]!required

The media IDs to be deleted.

ID!required

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


Was this section helpful?

Anchor to ProductDeleteMediaPayload returnsProductDeleteMediaPayload returns

List of media IDs which were deleted.

Anchor to deletedProductImageIdsdeletedProductImageIds

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.

[UserError!]!non-nullDeprecated

The list of errors that occurred from executing the mutation.


Was this section helpful?