# Cannot delete a product

**URL:** <https://community.shiphero.com/t/cannot-delete-a-product/288>\
**Category:** GraphQL API\
**Created:** [January 9, 2020, 8:00am UTC](https://community.shiphero.com/t/cannot-delete-a-product/288 "2020-01-09T08:00:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gary](https://avatars.discourse-cdn.com/v4/letter/g/839c29/32.png) [@Gary](https://community.shiphero.com/u/Gary)\
**Post date:** [January 9, 2020, 8:00am UTC](https://community.shiphero.com/t/cannot-delete-a-product/288/1 "2020-01-09T08:00:47Z")

</div>

Hello Shiphero community,

I get an `Unexpected Error` when I send a `product_delete` mutation or a `warehouse_product_delete` mutation. Is it possible that I am missing rights to delete products and warehouse\_products ?

Thank you for your time.

**product\_delete mutation:**  
`mutation { product_delete( data: { sku: "CHAIR12345" } ) { request_id complexity } }`  
**Response:**  
`{ "errors": [{ "message": "Unexpected Error", "operation": "product_delete", "field": "product_delete", "request_id": "5e16d6617564e0367005c71c", "code": 22 }], "data": { "product_delete": null } }`

**warehouse\_product\_delete mutation:**  
`mutation { warehouse_product_delete( data: { sku: "CHAIR12345", warehouse_id: "V2FyZWhvdXNlOjExMjg4" } ) { request_id complexity } }`  
**Response:**  
`{ "errors": [{ "message": "Unexpected Error", "operation": "warehouse_product_delete", "field": "warehouse_product_delete", "request_id": "5e16d8750d04ade72e2a0815", "code": 22 }], "data": { "warehouse_product_delete": null } }`

---

<div class="post-metadata">

**Author:** ![tomasw](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/tomasw/32/248_2.png) [@tomasw](https://community.shiphero.com/u/tomasw)\
**Post date:** [January 9, 2020, 1:54pm UTC](https://community.shiphero.com/t/cannot-delete-a-product/288/2 "2020-01-09T13:54:47Z")

</div>

Hi @Gary  
Nothing looks wrong as far as I can tell, I already submitted a request to Engineering to have a look at it.  
I will let you know as soon as I get an update on that.  
Thanks!  
Tom
