Remove-Shopify Cmdlet
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