Remove-JSON Cmdlet
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