This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)
Built-in Mathematica SymbolSee Also »

DeleteContents

DeleteContents
is an option for DeleteDirectory that specifies whether the contents of directories should automatically be deleted.
  • With the default setting DeleteContents->False, DeleteDirectory will only delete directories that contain no files.
New in 2