Qu

remove_dir

Builtin index · File I/O

remove_dir(path, [recursive=false], [permanent=false])

Input: path, recursive, permanent · Output: no output

What it is

Deletes the directory path, to the Recycle Bin/Trash by default and outright with permanent=true, as remove_file. Refuses a non-empty directory unless recursive=true — this check applies either way, since "may I remove a whole tree" and "should this be recoverable" are different questions.

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
remove_dir(path, [recursive=false], [permanent=false])
path —Deletes the directory path, to the Recycle Bin/Trash by default and outright with permanent=true, as remove_file.
recursive optional (default false)Refuses a non-empty directory unless recursive=true — this check applies either way, since "may I remove a whole tree" and "should this be recoverable" are different questions.
permanent optional (default false)Deletes the directory path, to the Recycle Bin/Trash by default and outright with permanent=true, as remove_file.
no output—

Examples

No documentation example calls this form yet. The File I/O chapter is where one belongs.