| MATLAB Web Server | Search  Help Desk |
| wscleanup |
Purge stale files from directory
Syntax
deletecount = wscleanup(filespec,timewindow,direc) deletecount = wscleanup(filespec,timewindow)
Description
deletecount = wscleanup(filespec,timewindow,direc) deletes all files matching filespec in the directory direc that are older than the number of hours specified in timewindow. deletecount is the number of files actually deleted.
deletecount = wscleanup(filespec,timewindow) deletes all files matching filespec in the current default directory that are older than the number of hours specified in timewindow. deletecount is the number of files actually deleted.