Ostorya dev docs

Admin API/Products and collections/Mutations

productDelete

mutation

Returns 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