EulandaXtools — Funktionsreferenz
Löscht eine Custom Collection aus einem Shopify-Shop.
Remove-ShopifyCollection [-Shop] <string> [-Token] <string> [-ApiVersion] <string> [-CollectionId]
<long> [[-MaxRetries] <int>] [[-TimeoutSec] <int>]Führt eine collectionDelete-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'.
-CollectionId
Type: longShopify Collection-Id der zu löschenden Collection.
-MaxRetries
Type: int
Default: 3Maximale Anzahl Wiederholungen bei Rate-Limit.
-TimeoutSec
Type: int
Default: 60HTTP Timeout in Sekunden.
bool# Collection löschen
Remove-ShopifyCollection -Shop 'mein-shop.myshopify.com' `
-Token 'shpat_abc123' -ApiVersion '2025-01' -CollectionId 1234567890# Trockenlauf (WhatIf)
Remove-ShopifyCollection -Shop $shop -Token $token `
-ApiVersion '2025-01' -CollectionId $id -WhatIf