productDeleteAsync - admin-graphql - MUTATION
Version: 2024-04
Description:
Deletes a product asynchronously, including all associated variants and media.
Access Scopes
`write_products` access scope. Also: The user must have a permission to delete a product.
Arguments
-
productId:
ID! -
The ID of the product to be deleted.
Returns
-
deleteProductId:
ID
The ID of the product that was requested to be deleted.
-
job:
Job
The background job that will delete the product and its associated variants and media.
-
userErrors:
ProductDeleteUserError!
The list of errors that occurred from executing the mutation.
Examples