Cmdlets for Adobe Commerce

Build 23.0.8839

Remove-AdobeCommerce Cmdlet

Parameters   Output Objects  

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

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