Product_delete not working as expected

We think this query should result in a deleted product:

mutation {
  product_delete(
		data: {
      sku: "Par_F-TRV-0086"
      customer_account_id: "QWNjb3VudDo2ODA1MA=="
    }
  ) {
    request_id
    complexity
  }
}

But instead we get an error

{
  "errors": [
    {
      "message": "Unexpected Error",
      "operation": "product_delete",
      "field": "product_delete",
      "request_id": "62e5130e7ca5720090ab140c",
      "code": 22
    }
  ],
  "data": {
    "product_delete": null
  }
}

Can you advise us pls?

Hey @ajitdsa,

Thanks for reaching out!
I’ll look into this and have an update for you shortly.

Best,
RayanP

Hey @ajitdsa,

Thank you for your patience!
Wanted to let you know we’re still actively investigating this issue.

Best,
RayanP

Hey @ajitdsa,

Apologies for the delay. The issue with this SKU I believe is that it is part of a recursive kit. A recursive kit is a kit (kit a) where the component of the kit is a kit (kit b) itself, and that kit’s (kit b) component is the original kit (kit a). I’ve been looking into recursive kits and how to replicate them but haven’t been able to yet, which is the cause of this delay.

I’d recommend running a kit_clear mutation on this SKU and then try to use product_delete.

mutation {
  kit_clear(data: { sku: "Par_F-TRV-0086" customer_account_id:"QWNjb3VudDo2ODA1MA==" }) {
    request_id
    complexity
  }
}

Please let me know if you have any questions or concerns.

Best,
RayanP