$XmlRepository.Delete
Overview
Deletes any existing data on specified path.
void $XmlRepository.Delete(targetPath: string)
Arguments
string targetPath
Specifies the path to delete. If there is any data in the specified path, the child path will be deleted.
Remarks
This method deletes nodes in specific path. If no path available or you need to delete specific nodes you can use $XmlRepository.Query method with xquery update statements.
Example
Delete a Customer
$XmlRepository.Delete( 'Customers/' + customerNode.Evaluate('Id') );
Example
Delete all customers
$XmlRepository.Delete( 'Customers' );
Copyright © 2010 - 2023 Emakin. All rights reserved.