# deleteAll functionality via API

**URL:** <https://community.pinecone.io/t/deleteall-functionality-via-api/134>\
**Category:** Support\
**Created:** [February 3, 2022, 3:16pm UTC](https://community.pinecone.io/t/deleteall-functionality-via-api/134 "2022-02-03T15:16:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sophiem](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@sophiem](https://community.pinecone.io/u/sophiem)\
**Post date:** [February 3, 2022, 3:16pm UTC](https://community.pinecone.io/t/deleteall-functionality-via-api/134/1 "2022-02-03T15:16:01Z")

</div>

I am having issues with your deleteAll functionality isn’t working via API. Here’s a screenshot of the code that I’m using to try to invoke your API. I also tried calling the same API without the namespace parameter, but I get an error. The function returns but no items get deleted from the index.

---

<div class="post-metadata">

**Author:** ![jamesbriggs](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/jamesbriggs/32/52_2.png) [@jamesbriggs](https://community.pinecone.io/u/jamesbriggs)\
**Post date:** [February 3, 2022, 4:31pm UTC](https://community.pinecone.io/t/deleteall-functionality-via-api/134/2 "2022-02-03T16:31:21Z")

</div>

Thank you for bringing this to our attention. If you add ids=[]& to your URL, it will work.  
So it would be `/vectors/delete?ids=[]&deleteAll=true&namespace`

We will update the doc to indicate ids is required or otherwise relax the requirement. Thanks again.
