Skip to content

rmdir

builtin · libnexusinterp/corefcn/dirfns-proprietary.cc

: rmdir dir
: rmdir (dir, "s")
: [status, msg, msgid] = rmdir (…)

Remove the directory dir.

It must be empty unless the second argument "s" requests recursive removal. Recursive removal first asks for confirmation in an interactive session only when the internal confirmation setting is switched on (off by default, as in MATLAB). Without output arguments a failure is an error.