# Error deleting a warehouse product

**URL:** <https://community.shiphero.com/t/error-deleting-a-warehouse-product/2192>\
**Category:** GraphQL API\
**Created:** [October 10, 2022, 4:44am UTC](https://community.shiphero.com/t/error-deleting-a-warehouse-product/2192 "2022-10-10T04:44:48Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![archit\_toptal](https://avatars.discourse-cdn.com/v4/letter/a/c4cdca/32.png) [@archit\_toptal](https://community.shiphero.com/u/archit_toptal)\
**Post date:** [October 10, 2022, 4:44am UTC](https://community.shiphero.com/t/error-deleting-a-warehouse-product/2192/1 "2022-10-10T04:44:48Z")

</div>

Hello, we’re getting “Unexpected Error” while deleting some products.  
This request was successful, for example -

```auto
{
  "query": "mutation ($data:DeleteWarehouseProductInput!){warehouse_product_delete(data: $data){request_id}}",
  "variables": {
    "data": {
      "sku": "McDowell-ToothPaste",
      "warehouse_id": "V2FyZWhvdXNlOjg1NTIy",
      "customer_account_id": "68828"
    }
  }
}

```

But, this one (made after the previous one) wasn’t -

```auto
{
  "query": "mutation ($data:DeleteWarehouseProductInput!){warehouse_product_delete(data: $data){request_id}}",
  "variables": {
    "data": {
      "sku": "Beyes",
      "warehouse_id": "V2FyZWhvdXNlOjg1NTIy",
      "customer_account_id": "68973"
    }
  }
}

```

and resulted in this response -

```auto
{
  "errors": [
    {
      "message": "Unexpected Error",
      "operation": "warehouse_product_delete",
      "field": "warehouse_product_delete",
      "request_id": "6343a04886f30786148614b8",
      "code": 22
    }
  ],
  "data": {
    "warehouse_product_delete": null
  },
  "extensions": {
    "throttling": {
      "estimated_complexity": 5,
      "cost": 5,
      "cost_detail": {
        "warehouse_product_delete": {
          "items_count": 0,
          "cost": 5,
          "total_cost": 5,
          "fields": {}
        }
      },
      "user_quota": {
        "credits_remaining": 2002,
        "max_available": 2002,
        "increment_rate": 30
      }
    }
  }
}

```

Can anyone share what may be the issue here?

---

<div class="post-metadata">

**Author:** ![sh-agent](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@sh-agent](https://community.shiphero.com/u/sh-agent)\
**Post date:** [October 10, 2022, 11:05am UTC](https://community.shiphero.com/t/error-deleting-a-warehouse-product/2192/2 "2022-10-10T11:05:03Z")

</div>

Hey @archit_toptal,

Thanks for reaching out and welcome to our Developer Community!  
I’ll start looking into this error and get back to you with an update.

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

Best,  
RayanP

---

<div class="post-metadata">

**Author:** ![sh-agent](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@sh-agent](https://community.shiphero.com/u/sh-agent)\
**Post date:** [October 10, 2022, 8:12pm UTC](https://community.shiphero.com/t/error-deleting-a-warehouse-product/2192/3 "2022-10-10T20:12:09Z")

</div>

Hey @archit_toptal,

Thanks for hanging in there.

I believe this issue will have to be escalated to our Engineering Team.  
I’ll come back to you with updates and workarounds if any.

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

Best,  
RayanP

---

<div class="post-metadata">

**Author:** ![archit\_toptal](https://avatars.discourse-cdn.com/v4/letter/a/c4cdca/32.png) [@archit\_toptal](https://community.shiphero.com/u/archit_toptal)\
**Post date:** [October 11, 2022, 5:51am UTC](https://community.shiphero.com/t/error-deleting-a-warehouse-product/2192/4 "2022-10-11T05:51:44Z")

</div>

Thank you, please keep me updated.

---

<div class="post-metadata">

**Author:** ![archit\_toptal](https://avatars.discourse-cdn.com/v4/letter/a/c4cdca/32.png) [@archit\_toptal](https://community.shiphero.com/u/archit_toptal)\
**Post date:** [October 13, 2022, 7:08am UTC](https://community.shiphero.com/t/error-deleting-a-warehouse-product/2192/5 "2022-10-13T07:08:50Z")

</div>

Hey @sh-agent, did you folks find something here?

---

<div class="post-metadata">

**Author:** ![sh-agent](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@sh-agent](https://community.shiphero.com/u/sh-agent)\
**Post date:** [October 13, 2022, 11:25am UTC](https://community.shiphero.com/t/error-deleting-a-warehouse-product/2192/6 "2022-10-13T11:25:53Z")

</div>

Hey @archit_toptal,

The ticket I made for this issue is still making its way to our Engineering Team. I can let you know when it gets picked up.

Thank you for your continued patience.

Best,  
RayanP

---

<div class="post-metadata">

**Author:** ![archit\_toptal](https://avatars.discourse-cdn.com/v4/letter/a/c4cdca/32.png) [@archit\_toptal](https://community.shiphero.com/u/archit_toptal)\
**Post date:** [October 19, 2022, 4:43pm UTC](https://community.shiphero.com/t/error-deleting-a-warehouse-product/2192/8 "2022-10-19T16:43:42Z")

</div>

Hey @sh-agent, is it possible for you to escalate this?

---

<div class="post-metadata">

**Author:** ![sh-agent](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@sh-agent](https://community.shiphero.com/u/sh-agent)\
**Post date:** [October 19, 2022, 5:58pm UTC](https://community.shiphero.com/t/error-deleting-a-warehouse-product/2192/9 "2022-10-19T17:58:19Z")

</div>

Hey @archit_toptal,

I’ve bumped this issue. I can let you know when it gets picked up by an Engineer.  
Do you by chance have any more SKU’s in which you’ve noticed this problem?

Thanks for hanging in there!

Best,  
RayanP

---

<div class="post-metadata">

**Author:** ![archit\_toptal](https://avatars.discourse-cdn.com/v4/letter/a/c4cdca/32.png) [@archit\_toptal](https://community.shiphero.com/u/archit_toptal)\
**Post date:** [October 19, 2022, 6:54pm UTC](https://community.shiphero.com/t/error-deleting-a-warehouse-product/2192/10 "2022-10-19T18:54:09Z")

</div>

Thanks for that!  
Here’s some SKUs that responded with “Unexpected Error” - `Avanti-toothpaste-dispenser`, `BTJ-ToothPaste`, `Avanti-NB-Fish Oil`, `Microflex Med Safegrip`, `BTJ-Horizon`, `Matt-Seche`.  
And here’s some that didn’t (and got deleted successfully) - `ToothpasteDis-PepperUn`, `Chotter-9Lives`, `Lighthouse-LorAnn-Princess`

---

<div class="post-metadata">

**Author:** ![sh-agent](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@sh-agent](https://community.shiphero.com/u/sh-agent)\
**Post date:** [October 19, 2022, 6:58pm UTC](https://community.shiphero.com/t/error-deleting-a-warehouse-product/2192/11 "2022-10-19T18:58:31Z")

</div>

Hey @archit_toptal,

Thanks for the quick reply!

I’ll go ahead and add this to the ticket, while also looking for a work around while it makes its way through the process.

Your patience is much appreciated.

Best,  
RayanP

---

<div class="post-metadata">

**Author:** ![archit\_toptal](https://avatars.discourse-cdn.com/v4/letter/a/c4cdca/32.png) [@archit\_toptal](https://community.shiphero.com/u/archit_toptal)\
**Post date:** [October 25, 2022, 2:02pm UTC](https://community.shiphero.com/t/error-deleting-a-warehouse-product/2192/12 "2022-10-25T14:02:57Z")

</div>

Hey @sh-agent, have you folks been able to figure this out?

---

<div class="post-metadata">

**Author:** ![sh-agent](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@sh-agent](https://community.shiphero.com/u/sh-agent)\
**Post date:** [October 25, 2022, 9:16pm UTC](https://community.shiphero.com/t/error-deleting-a-warehouse-product/2192/13 "2022-10-25T21:16:48Z")

</div>

Hey @archit_toptal,

Thanks for hanging in there!

The ticket is still making its way to our Engineers.  
Have you tried deleting these products through the UI? (if this is successful could you leave one or two SKU’s undeleted so the Engineering Team can troubleshoot?)

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

Best,  
RayanP

---

<div class="post-metadata">

**Author:** ![archit\_toptal](https://avatars.discourse-cdn.com/v4/letter/a/c4cdca/32.png) [@archit\_toptal](https://community.shiphero.com/u/archit_toptal)\
**Post date:** [November 1, 2022, 12:12pm UTC](https://community.shiphero.com/t/error-deleting-a-warehouse-product/2192/14 "2022-11-01T12:12:46Z")

</div>

Hey @sh-agent, directly deleting from the UI will likely break things for our software so for now we’ve decided to not do that.

Has any engineer been able to take a look at this? We’re facing a deteriorated UX for the last 3 weeks and it’d really help if someone can figure out the issue here as soon as possible.

---

<div class="post-metadata">

**Author:** ![sh-agent](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@sh-agent](https://community.shiphero.com/u/sh-agent)\
**Post date:** [November 1, 2022, 6:49pm UTC](https://community.shiphero.com/t/error-deleting-a-warehouse-product/2192/15 "2022-11-01T18:49:35Z")

</div>

Hey @archit_toptal,

Thanks for your patience!

Unfortunately, this ticket is still going through the process.  
However, we do think we were able to find a workaround for the time being. Could you try removing the SKU’s thumbnails/product images first, then try to delete them?

Let me know if that works!

Best,  
RayanP

---

<div class="post-metadata">

**Author:** ![sh-agent](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@sh-agent](https://community.shiphero.com/u/sh-agent)\
**Post date:** [November 2, 2022, 11:04am UTC](https://community.shiphero.com/t/error-deleting-a-warehouse-product/2192/16 "2022-11-02T11:04:42Z")

</div>

Hey @archit_toptal,

Just wanted to let you know that this ticket has made it’s way to the Engineer’s Queue, so hopefully soon we’ll be able to get a proper workaround / fix for this issue.

Thanks for hanging in there, it is very much appreciated!

Best,  
RayanP

---

<div class="post-metadata">

**Author:** ![archit\_toptal](https://avatars.discourse-cdn.com/v4/letter/a/c4cdca/32.png) [@archit\_toptal](https://community.shiphero.com/u/archit_toptal)\
**Post date:** [November 9, 2022, 12:07pm UTC](https://community.shiphero.com/t/error-deleting-a-warehouse-product/2192/17 "2022-11-09T12:07:47Z")

</div>

Hey @sh-agent, I tried deleting `kit-test-peeler` and `test-peeler-kit-m2n` which didn’t have any images and got the same error with the API. Both were kits fwiw. I was then able to delete them from the UI (post clearing their bins). This was around a week back.

Has your engineering team been able to make inroads here?

---

<div class="post-metadata">

**Author:** ![sh-agent](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@sh-agent](https://community.shiphero.com/u/sh-agent)\
**Post date:** [November 9, 2022, 12:17pm UTC](https://community.shiphero.com/t/error-deleting-a-warehouse-product/2192/18 "2022-11-09T12:17:59Z")

</div>

Hey @archit_toptal,

That’s great that you were able to get them deleted, I’ll add your steps to the ticket.  
Unfortunately. this ticket is still in the Engineers Queue due to a pretty big backlog. It should be getting looked at soon.

Thank you so much for your patience, let me know if there’s anything I can do to assist!

Best,  
RayanP
