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:

Wolfram Research (1991), DeleteDirectory, Wolfram Language function, https://reference.wolfram.com/language/ref/DeleteDirectory.html (updated 2016).

Text

Wolfram Research (1991), DeleteDirectory, Wolfram Language function, https://reference.wolfram.com/language/ref/DeleteDirectory.html (updated 2016).

CMS

Wolfram Language. 1991. "DeleteDirectory." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2016. https://reference.wolfram.com/language/ref/DeleteDirectory.html.

APA

Wolfram Language. (1991). DeleteDirectory. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DeleteDirectory.html

BibTeX

@misc{reference.wolfram_2024_deletedirectory, author="Wolfram Research", title="{DeleteDirectory}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/DeleteDirectory.html}", note=[Accessed: 21-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_deletedirectory, organization={Wolfram Research}, title={DeleteDirectory}, year={2016}, url={https://reference.wolfram.com/language/ref/DeleteDirectory.html}, note=[Accessed: 21-December-2024 ]}