WolframLang: 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 Tasks
- WolframScript Tutorial
- WolframLang: File Name Extension
- WolframLang: Shell Tasks
- WolframLang: Navigate Directory
- WolframLang: List Files (Walk Directory)
- WolframLang: File Path Functions
- WolframLang: Delete Dir
- WolframLang: is File or Dir
- WolframLang: File Exist
- WolframLang: Get File Date
- WolframLang: Get File Size
- WolframLang: Print File Content
- WolframLang: Get File Hash
- WolframLang: Read File
- WolframLang: Write File
- WolframLang: Load a Package or File
- WolframLang: Get Environment Variable
- WolframLang: Date Time
- WolframLang: Find/Replace Script