DeleteContents

DeleteContents

is an option for DeleteDirectory that specifies whether the contents of directories should automatically be deleted.

Details

Examples

Basic Examples  (1)

Copy a directory:

List of files in the directory:

The contents of the directory cannot be deleted:

Use DeleteContents->True to automatically delete the contents:

The directory is no longer there:

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

Text

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

CMS

Wolfram Language. 1991. "DeleteContents." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/DeleteContents.html.

APA

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

BibTeX

@misc{reference.wolfram_2024_deletecontents, author="Wolfram Research", title="{DeleteContents}", year="1991", howpublished="\url{https://reference.wolfram.com/language/ref/DeleteContents.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_deletecontents, organization={Wolfram Research}, title={DeleteContents}, year={1991}, url={https://reference.wolfram.com/language/ref/DeleteContents.html}, note=[Accessed: 22-November-2024 ]}