file:delete
Deletes a file or a directory.
delete($path as xs:string, $recursive as xs:boolean?:=false()) ➔ empty-sequence()
Arguments | ||||
| $path | xs:string | Path to file/directory | |
| $recursive | xs:boolean? | := false() | Determines whether the operation should recurse down though the filesystem tree |
Result | empty-sequence() | |||
Namespace
http://expath.org/ns/file
Links to specifications
Saxon availability
Available in XPath 2.0 and later versions. Implemented since Saxon 9.5. Requires Saxon-PE or Saxon-EE. Available for all platforms.