Cmdlets for JSON

Build 22.0.8479

Remove-JSON Cmdlet

Parameters   Output Objects  

JSON データを削除します。

Syntax

Remove-JSON [parameters]

Remarks

Remove-JSON コマンドレットを使って、SQL DELETE ステートメントに似た構文を用いてJSON データを削除できます。

$conn = Connect-JSON -DataModel 'Relational' -URI 'C:\people.json'
Remove-JSON -Connection $conn -Table "NorthwindOData" -Id "1"
Where パラメータは主キーを指定するためにも使われます。
Remove-JSON -Connection $conn -Table "exTablePowershell;" -Where "Id = 1"
主キーは、パイプライン上でコマンドレットに渡すこともできます。
Select-JSON -Connection $conn -Table NorthwindOData -Where "personal.name.last = 'ana.trujilo@northwind.org'" | Remove-JSON

Copyright (c) 2023 CData Software, Inc. - All rights reserved.
Build 22.0.8479