DOCUMENTATION CENTER SEARCH
Mathematica
>
File Operations
>
Built-in
Mathematica
Symbol
Introduction to Finding and Manipulating Files
Manipulating Files and Directories
Tutorials »
|
RenameFile
DeleteDirectory
CopyFile
See Also »
|
File Operations
More About »
DeleteFile
DeleteFile
["
file
"]
deletes a file.
DeleteFile
[{"
file
1
", "
file
2
",
...
}]
deletes a list of files.
MORE INFORMATION
DeleteFile
returns
Null
if it succeeds in deleting files, and
$Failed
if it fails.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
Copy a file and copy it into the new directory:
In[1]:=
In[2]:=
Out[2]=
In[3]:=
Out[3]=
The file is there:
In[4]:=
Out[4]=
Delete the file:
In[5]:=
The file is no longer there:
In[6]:=
Out[6]=
SEE ALSO
RenameFile
DeleteDirectory
CopyFile
TUTORIALS
Introduction to Finding and Manipulating Files
Manipulating Files and Directories
MORE ABOUT
File Operations
New in 2
© 2008 Wolfram Research, Inc.