Version: v0.8.1 - Beta.  We welcome contributors & feedback.

File.deleteDir

$dir.deleteDir($options={}) -> null

Description

Delete (unlink) a directory and all of its contents (including subfolders, recursively).

By default, if the directory does not exist, an error will be triggered.

dir'files:/temp/dir'.deleteDir()

Options

Option Value Description
ifExists true/false Don’t trigger an error if the dir does not exist.
dir'files:/temp/dir'.deleteDir(-ifExists)

See Also