Skip to main content
mutation

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

Deprecated. Use fileUpdate instead.

Deletes media for a product.

•[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

•[ID!]

List of media IDs which were deleted.

Anchor to deletedProductImageIdsdeletedProductImageIds
•[ID!]

List of product image IDs which were deleted.

•[MediaUserError!]!non-null

The list of errors that occurred from executing the mutation.

•Product

The product associated with the deleted media.

•[UserError!]!non-nullDeprecated

The list of errors that occurred from executing the mutation.


Was this section helpful?
OSZAR »