Cmdlets for XML

Build 24.0.9060

Remove-XML Cmdlet

Parameters   Output Objects  

Deletes XML data.

Syntax

Remove-XML [parameters]

Remarks

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

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

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