DOCUMENTATION CENTER SEARCH
Mathematica
>
Built-in
Mathematica
Symbol
DeleteFile
See Also »
DeleteContents
DeleteContents
is an option for
DeleteDirectory
that specifies whether the contents of directories should automatically be deleted.
MORE INFORMATION
With the default setting
DeleteContents->
False
,
DeleteDirectory
will only delete directories that contain no files.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
Copy a directory:
In[1]:=
In[2]:=
In[3]:=
Out[3]=
List of files in the directory:
In[4]:=
Out[4]=
The contents of the directory cannot be deleted:
In[5]:=
Out[5]=
Use
DeleteContents->
True
to automatically delete the contents:
In[6]:=
The directory is no longer there:
In[7]:=
Out[7]=
SEE ALSO
DeleteFile
New in 2
© 2008 Wolfram Research, Inc.