rdelete.mBack to Contents<< Prev |  Next >> 

rdelete
Delete a series of files.

Description
rdelete file_name  deletes the named files. Wildcards may be used in 
the filename, as with DELETE, but also in the pathnames, which allows 
for deleting a series a files belonging to different directories. 
Brackets ([]) may also be used (see expandstr). 
 
Use the functional form of rdelete, such as rdelete('file'), when the 
file names are stored in a string or a cell array of strings. 
 
To delete directories, see rrmdir. 
 
Examples: 
   rdelete('DSC*.JPG') is equivalent to DELETE('DSC*.JPG') 
 
   rdelete('*/*.JPG') deletes all the JPG-files in all the directories. 
 
   rdelete('mydir*/DSC[10:30].*') deletes the files DSC00010.* to 
   DSC00030.* in each directory 'mydir*'. 
 
F. Moisy 
Revision: 1.01,  Date: 2005/10/18. 
 
See Also
DELETE, expandstr, rdir, RMDIR, rrmdir. 

 Previous: randvecNext: rdir 

Help file generated by m2html 1.06