Delete the file manually for day to day process
I've created a l开发者_JAVA技巧og file for day to day processing and i want to delete the old files generated before 2 days.
In case you use Linux
find /var/spool/sms -mtime +2 -type f | xargs rm -f
All files in /var/spool/sms
older than 2 days will be deleted.
PHP unlink — Deletes a file
Probably if you are on LInux platform you can use cron .
精彩评论