|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
DeleteDirectory
DeleteDirectory["dir"]
deletes the specified directory.
Details and OptionsDetails and Options
- DeleteDirectory["dir", DeleteContents->True] deletes dir and all files and directories that it contains.
- DeleteDirectory["dir"] deletes the directory dir only if it contains no files.
- DeleteDirectory returns Null if it succeeds in deleting a directory, and $Failed if it fails.
New in 2
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
