Cmdlets for JSON

Build 24.0.9060

Remove-JSON Cmdlet

Parameters   Output Objects  

Deletes JSON data.

Syntax

Remove-JSON [parameters]

Remarks

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

$conn = Connect-JSON -DataModel 'Relational' -URI 'C:\people.json'
Remove-JSON -Connection $conn -Table "NorthwindOData" -Id "1"
The Where parameter can also be used to specify the primary key:
Remove-JSON -Connection $conn -Table "exTablePowershell;" -Where "Id = 1"
The primary key can also be passed to the cmdlet along the pipeline:
Select-JSON -Connection $conn -Table NorthwindOData -Where "personal.name.last = '[email protected]'" | Remove-JSON

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