Delete files older than [X] time.
#1

I have over 5000 accounts in my scriptfiles and a lot of them (60-70%) are not being used, and it's really annoying to make a backup of all of them. So i was thinking of downloading all of them on to my computer, and deleting them with some program that checks how old their are. So does anybody know a good program or tool which can help me with this? Thank you.
Reply
#2

you need a php script to do it instead of downloading it
Reply
#3

If on windows, you could sort by the last accessed/edited time and delete the old ones.. I'm pretty sure others OS's support it as well.

Most FTP programs have it as well for sorting..
Reply
#4

  1. Put the view to detailed list
  2. Click the date column to sort them by date
  3. Select the oldest file
  4. Scroll to the newest file you want to delete
  5. Hold shift and press the newest file you want to delete
Reply
#5

Connect using FTP, and then hit the date and sort them by order. Then just select all the old ones (might take some time) and delete them.

That's it.
Reply
#6

Thanks all, i deleteted 2500+ accounts.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)