fs.remove()
Removes a filesystem entry.
Signature
fs.remove(path[, recursive])
Parameters
Text path and optional boolean recursive, default false.
Returns
Null.
Behavior
Recursive mode enumerates directory children. Links are removed as entries.
Errors
Missing entry, nonempty directory without recursion, recursion limit or OS error.
Example
use fs
p = fs.temporary_file()
fs.remove(p)
assert(not fs.exists(p))