We're constantly trying to improve your support experience, and your feedback is extremely valuable to us.

Please take a moment to tell us about your experience today.
Sign up for future Help Center user research studies.

productDeleteMedia

Version unstable

Deletes media for a product.

Required access

write_products access scope

Interactive Example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

mediaIds ( [ID!]! ) required

The media IDs to be deleted.

productId ( ID! ) required

The ID of the product on which to delete media.

Return Fields

deletedMediaIds ([ID!])

List of media IDs which were deleted.

product (Product)

The product which media was deleted from.

userErrors ([UserError!]!)

List of errors that occurred executing the mutation.

Sign up for a Partner account to get started.

Sign up