productDelete

Delete a product. The productDelete mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.

Scope required: product:write

mutation productDelete ($id: ID!) {
  productDelete (id: $id) {
      errors
      product {
        code
        createdAt
        customFieldsData
        description
        everythingInPlus
        hasCustomFields
        id
        internalNotes
        isVisible
        name
        plansToDisplay
        platformId
        productCategoryId
        showProductNameOnLineItem
        updatedAt
      }
  }
}

ArgumentsLink to Arguments section

{
  "id": "456123"
}
Name Type Description
id ID  

ResponseLink to Response section

Name Type Description
errors List (String)  
product Product