Cmdlets for WooCommerce

Build 24.0.9060

Remove-WooCommerce Cmdlet

Parameters   Output Objects  

Deletes WooCommerce data.

Syntax

Remove-WooCommerce [parameters]

Remarks

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

$conn = Connect-WooCommerce -ConsumerKey 'ConsumerKey' -ConsumerSecret 'ConsumerSecret' -Url 'http://localhost/woocommerce/'
Remove-WooCommerce -Connection $conn -Table "Orders" -Id "6"
The Where parameter can also be used to specify the primary key:
Remove-WooCommerce -Connection $conn -Table "exTablePowershell;" -Where "Id = 6"
The primary key can also be passed to the cmdlet along the pipeline:
Select-WooCommerce -Connection $conn -Table Orders -Where "ParentId = '3'" | Remove-WooCommerce

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