Anchor to section titled 'undefined'

productDeleteAsync
mutation
deprecated

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

Deletes a product asynchronously, including all associated variants and media. Use productDelete instead.


Anchor to productId
productId
required

The ID of the product to be deleted.


Was this section helpful?

The ID of the product that was requested to be deleted.

The background job that will delete the product and its associated variants and media.

The list of errors that occurred from executing the mutation.


Was this section helpful?
Hide code
Mutation reference
Copy
mutation productDeleteAsync($productId: ID!) {
  productDeleteAsync(productId: $productId) {
    deleteProductId
    job {
      # Job fields
    }
    userErrors {
      field
      message
    }
  }
}
Hide code
Input
Copy
{
  "productId": "gid://shopify/<objectName>/10079785100"
}