expath-file:delete-dir

Deletes a file or an empty directory.

delete-dir($path as xs:string) ➔ empty-sequence()

Arguments

 

$path

xs:string

The name or path of file or directory to be deleted

Result

empty-sequence()

delete-dir($path as xs:string, $recursive as xs:boolean) ➔ empty-sequence()

Arguments

 

$path

xs:string

The name or path of file or directory to be deleted

 

$recursive

xs:boolean

Whether or not to recurse into subdirectories

Result

empty-sequence()

Details

Namespace: http://expath.org/ns/file

Notes on the Saxon implementation

Implemented since Saxon 9.5; available whether or not support for XPath 3.0 is enabled