updating / removing relation between produkt and image

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 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).