product Delete Media
Requires access scope. Also: The user must have a permission to delete media from a product.
Deletes media from a Product, such as images, videos, and 3D models.
When you delete media images, the mutation also removes any corresponding product images. The mutation returns the IDs of both the deleted media and any product images that the deletion removed.
This action is irreversible. You can't recover deleted media.
Arguments
- Anchor to mediaIdsmedia•[ID!]!
Ids required The media IDs to be deleted.
- Anchor to productIdproduct•ID!
Id required Specifies the product ID from which the media will be deleted.
- Anchor to deletedMediaIdsdeleted•[ID!]
Media Ids List of media IDs which were deleted.
- Anchor to deletedProductImageIdsdeleted•[ID!]
Product Image Ids List of product image IDs which were deleted.
- Anchor to mediaUserErrorsmedia•[Media
User Errors User Error!]! non-null The list of errors that occurred from executing the mutation.
- Anchor to productproduct•Product
The product associated with the deleted media.
- Anchor to userErrorsuser•[User
Errors Error!]! non-nullDeprecated The list of errors that occurred from executing the mutation.