Remove-ShopifyProductImage #
ÜBERSICHT #
Löscht ein Bild (Media) von einem Shopify-Produkt.
SYNTAX #
Remove-ShopifyProductImage [-Shop] <string> [-Token] <string> [-ApiVersion] <string> [-ProductId]
<long> [-ImageId] <long> [[-MaxRetries] <int>] [[-TimeoutSec] <int>]
BESCHREIBUNG #
Führt eine productDeleteMedia-Mutation per GraphQL aus. Unterstützt ShouldProcess für -WhatIf und -Confirm.
PARAMETER #
-Shop #
Type: string
Shopify-Shop-Domain, z.B. ‘mein-shop.myshopify.com’.
-Token #
Type: string
Admin API Access Token (shpat_…) der Custom App.
-ApiVersion #
Type: string
API-Version, z.B. ‘2025-01’.
-ProductId #
Type: long
Shopify-Produkt-ID, zu der das Bild gehört.
-ImageId #
Type: long
Shopify-Media-ID des zu löschenden Bildes.
-MaxRetries #
Type: int
Default: 3
Maximale Anzahl Wiederholungen bei Rate-Limit.
-TimeoutSec #
Type: int
Default: 60
HTTP Timeout in Sekunden.
AUSGABEN #
bool
BEISPIELE #
# 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