Remove-AdobeCommerce Cmdlet
AdobeCommerce データを削除します。
Syntax
Remove-AdobeCommerce [parameters]
Remarks
Remove-AdobeCommerce コマンドレットを使って、SQL DELETE ステートメントに似た構文を用いてAdobeCommerce データを削除できます。
$conn = Connect-AdobeCommerce -User 'admin' -Password 'admin' -Url 'https://myadobecommercehost' Remove-AdobeCommerce -Connection $conn -Table "Products" -Id "25"Where パラメータは主キーを指定するためにも使われます。
Remove-AdobeCommerce -Connection $conn -Table "exTablePowershell;" -Where "EntityId = 25"主キーは、パイプライン上でコマンドレットに渡すこともできます。
Select-AdobeCommerce -Connection $conn -Table Products -Where "EntityId = '238'" | Remove-AdobeCommerce