# updating / removing relation between produkt and image

**URL:** https://forum.shopware.com/t/updating-removing-relation-between-produkt-and-image/70865
**Category:** Programming (EN)
**Created:** [12. November 2020 um 14:04 UTC](https://forum.shopware.com/t/updating-removing-relation-between-produkt-and-image/70865 "2020-11-12T14:04:28Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![hagrim](https://avatars.discourse-cdn.com/v4/letter/h/cdc98d/32.png) [@hagrim](https://forum.shopware.com/u/hagrim)
#### Post date: [12. November 2020 um 14:04 UTC](https://forum.shopware.com/t/updating-removing-relation-between-produkt-and-image/70865/1 "2020-11-12T14:04:28Z")

</div>

Hello,

I’m programming an interface between our PIM system (JCatalog) and Shopware 6. I’m able to import new products using rest-api (json). Also I can create product images and create the relation between product and image. So far so good. But when&nbsp;I’m importing the same product with the corresponding images I see that images are just added. Is there a possibility to replace or to delete the old images (relations) using rest-api (json).
