Not used that but is it something like every episode of say eastenders in a folder Eastenders and have you deleted each one in turn to decrease the list and when empty delete the folder.Then empty the trash.
You can use a script from putty.
I use the following on a cron timer to delete episodes of The Chase and Coronation Street that are more than 14 days old.
This gets rid of the orphans as well.
#!/bin/sh
find "/media/net/TV/Coronation Street/" -type f -mtime +14 -exec rm {} \;
find "/media/net/TV/The Chase/" -type f -mtime +14 -exec rm {} \;
Obviously you would need to change the folder path.
I have all my series in folders so the path relates to the folder.
If you have everything in /media/hdd/movies/ it will delete everything that is over 2 weeks old.
If you're not sure what you are doing I would err on the side of caution and do things manually.
That's a take on the rm -rf commandYou can use a script from putty.
I use the following on a cron timer to delete episodes of The Chase and Coronation Street that are more than 14 days old.
This gets rid of the orphans as well.
#!/bin/sh
find "/media/net/TV/Coronation Street/" -type f -mtime +14 -exec rm {} \;
find "/media/net/TV/The Chase/" -type f -mtime +14 -exec rm {} \;
Obviously you would need to change the folder path.
the trouble with rm -rf is that it deletes everything no questions asked, the script @Willo3092 uses is only deleting files over 14 days old, less chance of upsetting the other half when you've deleted last nights Corro before she has watched it.That's a take on the rm -rf command
You can use rm -rf manually, but you need to be very careful you don't delete stuff you want to keep
good script btw
rm -rf only deletes what you tell it to.the trouble with rm -rf is that it deletes everything no questions asked, the script @Willo3092 uses is only deleting files over 14 days old, less chance of upsetting the other half when you've deleted last nights Corro before she has watched it.
yea, but if using -rf options then chances are you are using a wildcard, ie you wouldn't do rm -rf /media/hdd/movie/nameofrecording.ts as the -rf options are not then required. You would use -rf if using wildcards rm -rf /media/hdd/movie/nameofrecording.* which is then dangerous especially if you dont want to annoy the bossrm -rf only deletes what you tell it to.
The problem is knowing what to tell it to delete,
That's why I said nice script by @Willo3092