# Delete rows not working

**URL:** <https://community.hubspot.com/t/delete-rows-not-working/66383>\
**Category:** APIs & Integrations\
**Tags:** free\
**Created:** [October 3, 2022, 5:41pm UTC](https://community.hubspot.com/t/delete-rows-not-working/66383 "2022-10-03T17:41:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [October 3, 2022, 5:41pm UTC](https://community.hubspot.com/t/delete-rows-not-working/66383/1 "2022-10-03T17:41:19Z")

</div>

[https://api.hubapi.com/cms/v3/hubdb/tables/\*\*my\_tableID\*\*/rows/draft/batch/purge/?hapikey=\*\*my\_apiKey](https://api.hubapi.com/cms/v3/hubdb/tables/ **my%5C_tableID** /rows/draft/batch/purge/?hapikey=**my%5C_apiKey)\*\*

{ “inputs”: [“ **myIds** , **myids** , **myids** ”] }

I get the following error: {“status”:“error”,“message”:“resource not found”,“correlationId”:“30e0e94c-7b2d-4ce2-ad84-e98e8d563123”}

I double checked my table id and it is correct. Not sure what I’m doing wrong?

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [October 4, 2022, 9:03pm UTC](https://community.hubspot.com/t/delete-rows-not-working/66383/2 "2022-10-04T21:03:13Z")

</div>

Hi, @Anonymous 👋 Thanks for reaching out. Let’s see if we can get the conversation going — @LMeert @Sjardo, do you have any experience here?

Best,

Jaycee

---

<div class="post-metadata">

**Author:** ![LMeert](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lmeert/32/103847_2.png) [@LMeert](https://community.hubspot.com/u/LMeert)\
**Post date:** [October 5, 2022, 1:33pm UTC](https://community.hubspot.com/t/delete-rows-not-working/66383/3 "2022-10-05T13:33:49Z")

</div>

Hi @Anonymous,  
I think your JSON body might be wrong and the correct syntax should be :

`{ "inputs" : ["myId1", "myId2", "myId3"] }`

Adding quotes between each id for each row you want to delete.

Hope this helps !  
If it does, please consider marking this answer as a solution 🙂

Best,

Ludwig

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [October 5, 2022, 1:45pm UTC](https://community.hubspot.com/t/delete-rows-not-working/66383/4 "2022-10-05T13:45:08Z")

</div>

That did it! thank you
