# SW 5 - API Batch command don't work

**URL:** <https://forum.shopware.com/t/sw-5-api-batch-command-dont-work/32727>\
**Category:** Shopware 3.5\
**Tags:** general\
**Created:** [3. Dezember 2015 um 10:38 UTC](https://forum.shopware.com/t/sw-5-api-batch-command-dont-work/32727 "2015-12-03T10:38:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![T2D](https://avatars.discourse-cdn.com/v4/letter/t/5daacb/32.png) [@T2D](https://forum.shopware.com/u/T2D)\
**Post date:** [3. Dezember 2015 um 10:38 UTC](https://forum.shopware.com/t/sw-5-api-batch-command-dont-work/32727/1 "2015-12-03T10:38:37Z")

</div>

Hi Everyone, I am trying to batch delete (or add) articles. As you can see I have two articles ` Array ( [0] =\> Array ( [id] =\> 14508 [mainDetailId] =\> 15085 [supplierId] =\> [taxId] =\> 1 [priceGroupId] =\> ... [1] =\> Array ( [id] =\> 14510 [mainDetailId] =\> 15087 [supplierId] =\> 14 [taxId] =\> 1 [priceGroupId] =\> ` But I cant delete these two with a batch command. This does not work: ` $DEVclient-\>delete('articles/', array( array('id' =\> 14508), array('id' =\> 14510) ) ); ` This also does not work ` $DEVclient-\>delete('articles/', array( array('id' =\> '14508'), array('id' =\> '14510') ) ); `

---

<div class="post-metadata">

**Author:** ![Marcel\_S](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@Marcel\_S](https://forum.shopware.com/u/Marcel_S)\
**Post date:** [3. Dezember 2015 um 11:24 UTC](https://forum.shopware.com/t/sw-5-api-batch-command-dont-work/32727/2 "2015-12-03T11:24:25Z")

</div>

Hi, thanks for the report. I created this Issue in our Issuetracker: [https://issues.shopware.com/#/issues/SW-13410](https://issues.shopware.com/#/issues/SW-13410) So we can have a closer look at it. Greetings, Marcel

---

<div class="post-metadata">

**Author:** ![T2D](https://avatars.discourse-cdn.com/v4/letter/t/5daacb/32.png) [@T2D](https://forum.shopware.com/u/T2D)\
**Post date:** [3. Dezember 2015 um 14:59 UTC](https://forum.shopware.com/t/sw-5-api-batch-command-dont-work/32727/3 "2015-12-03T14:59:08Z")

</div>

Hey, after a few very helpful discussions in the IRC Chatroom it seems that the API example client in the shopware documentation doesnt work with the batch functions.
