Cmdlets for Shopify

Build 24.0.9060

Remove-Shopify Cmdlet

Parameters   Output Objects  

Deletes Shopify data.

Syntax

Remove-Shopify [parameters]

Remarks

The Remove-Shopify cmdlet allows you to use a syntax similar to SQL DELETE statements to delete Shopify data.

$conn = Connect-Shopify -InitiateOAuth 'GETANDREFRESH' -ShopURL 'https://yourshopname.myshopify.com' -OAuthClientId 'myoauthclientid' -OAuthClientSecret 'myoauthclientsecret'
Remove-Shopify -Connection $conn -Table "Customers" -Id "25"
The Where parameter can also be used to specify the primary key:
Remove-Shopify -Connection $conn -Table "exTablePowershell;" -Where "Id = 25"
The primary key can also be passed to the cmdlet along the pipeline:
Select-Shopify -Connection $conn -Table Customers -Where "FirstName = 'jdoe1234'" | Remove-Shopify

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9060