# VUEJS: oneToMany delete

**URL:** <https://forum.shopware.com/t/vuejs-onetomany-delete/67889>\
**Category:** Programmierung\
**Created:** [24. Juni 2020 um 07:20 UTC](https://forum.shopware.com/t/vuejs-onetomany-delete/67889 "2020-06-24T07:20:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mediaciety](https://avatars.discourse-cdn.com/v4/letter/m/ba9def/32.png) [@mediaciety](https://forum.shopware.com/u/mediaciety)\
**Post date:** [24. Juni 2020 um 07:20 UTC](https://forum.shopware.com/t/vuejs-onetomany-delete/67889/1 "2020-06-24T07:20:28Z")

</div>

Moin,

ich habe hier ein, nennen wirs mal „Bundle-Plugin“, also eine klassische 1:n (Ein Bundle hat n Items). Jetzt ist die große frage, wie man denn die Items „richtig“ löscht.

aus der entity entfernen klappt ja prima mit this.bundle.bundleitems.remove(‚meineItemId‘).&nbsp;Nur wenn’s ans „this.itemRepository.delete()“ geht, schmeißt SW eine Exception:  
„The delete request for mc\_bundle\_item was denied due to a conflict. The entity is currently in use by: mc\_bundle (1)“

Jemand 'ne idee dazu?
