Anchor to productDeleteproduct
product Delete
mutation
Requires access scope. Also: The user must have a permission to delete products.
Deletes a product, including all associated variants and media.
As of API version 2023-01
, if you need to delete a large product, such as one that has many
variants
that are active at several
locations,
you may encounter timeout errors. To avoid these timeout errors, you can instead use the asynchronous
ProductDeleteAsync
mutation.
Anchor to Arguments
Arguments
- Anchor to inputinput•Product
Delete Input!required Specifies the product to delete by its ID.
Was this section helpful?
- Anchor to deletedProductIddeleted•
Product Id The ID of the deleted product.
- Anchor to shopshop•Shop!non-null
The shop associated with the product.
- Anchor to userErrorsuser•
Errors [UserError!]!non-null The list of errors that occurred from executing the mutation.
Was this section helpful?