Wolfram: Delete Dir
Delete Directory
DeleteDirectory
returns Null
if it succeeds in deleting a directory, and $Failed
if it fails.
(* delete a dir only if empty *) DeleteDirectory["c:/Users/x09908"]
(* delete a dir and all its files and subdirs *) DeleteDirectory["c:/Users/x09908",DeleteContents->True]
WolframLang, Shell Scripting Tasks
- Wolfram: Shell Scripting Tasks
- Wolfram: Navigate Directory
- Wolfram: List Files (Walk Directory)
- Wolfram: File Path Functions
- Wolfram: Delete Dir
- Wolfram: is File or Dir
- Wolfram: File Exist
- Wolfram: Get File Date
- Wolfram: Get File Size
- Wolfram: Print File Content
- Wolfram: Get File Hash
- Wolfram: Read File
- Wolfram: Read File from Web
- Wolfram: Write File
- Wolfram: Load a Package or File
- Wolfram: Get Environment Variable
- Wolfram: Date Time
- Wolfram: Find Replace Script