Skip to content

Delete

Deletes any existing data on specified path.

1
$XmlRepository.Delete(targetPath: string):void

Parameters

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.

Delete a Customer

1
$XmlRepository.Delete( 'Customers/' + customerNode.Evaluate('Id') );

Delete all customers

1
$XmlRepository.Delete( 'Customers' );

See Also