Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Specifies the path to delete. If there is any data in the specified path, the child path will be deleted.

Example

...

Code Block
languagejs
$XmlRepository.Delete( 'Customers/' + customerNode.Evaluate('Id') );

Example

...

Code Block
languagejs
$XmlRepository.Delete( 'Customers' );

Examples

...

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

Code Block
languagejs
$XmlRepository.Delete( 'Customers/' + customerNode.Evaluate('Id') );

Example

Delete all customers

Code Block
languagejs
$XmlRepository.Delete( 'Customers' );