Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Deleting Old Files in a DB.

by mandog (Curate)
on Oct 09, 2003 at 00:51 UTC ( [id://297780] : note . print w/replies, xml ) Need Help??


in reply to Deleting Old Files in a DB.

Greetings Anonymous Monk

Your question is a bit vague...

What do you mean by "file" and "database" ?

On most UNIX machines you can delete files that are londer than a certain time w/ something like:

find /tmp -type f -mtime +20 | xargs rm

On MS windows you can use the find command to locate files older than a certain time & then select them and delete them.