Admin API/Products and collections/Mutations
productDelete
mutationReturns ProductDeletePayload!
mutation ProductDelete($input: ProductDeleteInput!) {
productDelete(input: $input) {
deletedProductId
userErrors {
code
message
field
}
}
}
# Variables
{
"input": {
"id": "gid://ostorya/Product/0f8c5b1e-…"
}
}Arguments
- inputProductDeleteInput!required
Payload
- deletedProductIdID
- userErrors[UserError!]!required