Remove-ShopifyCollection #
ÜBERSICHT #
Löscht eine Custom Collection aus einem Shopify-Shop.
SYNTAX #
Remove-ShopifyCollection [-Shop] <string> [-Token] <string> [-ApiVersion] <string> [-CollectionId]
<long> [[-MaxRetries] <int>] [[-TimeoutSec] <int>]
BESCHREIBUNG #
Führt eine collectionDelete-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’.
-CollectionId #
Type: long
Shopify Collection-Id der zu löschenden Collection.
-MaxRetries #
Type: int
Default: 3
Maximale Anzahl Wiederholungen bei Rate-Limit.
-TimeoutSec #
Type: int
Default: 60
HTTP Timeout in Sekunden.
AUSGABEN #
bool
BEISPIELE #
# 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