EulandaXtools — Funktionsreferenz
Löscht ein Bild (Media) von einem Shopify-Produkt.
Remove-ShopifyProductImage [-Shop] <string> [-Token] <string> [-ApiVersion] <string> [-ProductId]
<long> [-ImageId] <long> [[-MaxRetries] <int>] [[-TimeoutSec] <int>]Führt eine productDeleteMedia-Mutation per GraphQL aus. Unterstützt ShouldProcess für -WhatIf und -Confirm.
-Shop
Type: stringShopify-Shop-Domain, z.B. 'mein-shop.myshopify.com'.
-Token
Type: stringAdmin API Access Token (shpat_...) der Custom App.
-ApiVersion
Type: stringAPI-Version, z.B. '2025-01'.
-ProductId
Type: longShopify-Produkt-ID, zu der das Bild gehört.
-ImageId
Type: longShopify-Media-ID des zu löschenden Bildes.
-MaxRetries
Type: int
Default: 3Maximale Anzahl Wiederholungen bei Rate-Limit.
-TimeoutSec
Type: int
Default: 60HTTP Timeout in Sekunden.
bool# Bild löschen
Remove-ShopifyProductImage -Shop 'mein-shop.myshopify.com' `
-Token 'shpat_abc123' -ApiVersion '2025-01' `
-ProductId 1234567890 -ImageId 9876543210# Trockenlauf (WhatIf)
Remove-ShopifyProductImage -Shop $shop -Token $token `
-ApiVersion '2025-01' -ProductId $prodId -ImageId $imgId -WhatIf