DeleteDirectory

DeleteDirectory["dir"]

deletes the specified directory.

Details and Options

Examples

open allclose all

Basic Examples  (1)

Create a directory:

Check the presence of the new directory:

Delete the directory:

The directory is no longer there:

Scope  (1)

Delete a directory specified as a File object:

Introduced in 1991
 (2.0)
 |
Updated in 2016
 (11.0)