Page 1 of 1

Remove .rar & .zip right after successfully extracted

Posted: 15 Jun 2020, 11:58
by KrLx
Hi!

I am running out of space on my HDD and while I wait to receive more storage I'd like to know if it's possible for AMC to remove .rar and .zip files right after the contents being successfully extracted.

I'm running AMC over 1000 directories and if the script keeps extracting without removing the compressed files right after the extraction I will run out of storage very quickly :D

I understand the flags clean=y and deleteAfterExtract=y (which I'm using) clean and delete the compressed archives once the grouping / moving has been done.

So, long question short, is there any way to make AMC delete the compressed archives after successfully extracting the contents? That is, not waiting until all movies / shows are uncompressed, matches and moved to the proper directory.

Thanks in advance!

Re: Remove .rar & .zip right after successfully extracted

Posted: 15 Jun 2020, 12:40
by rednoah
Well, I'd extract all the archives before calling filebot then:
https://superuser.com/questions/410972/ ... al-folders


:idea: If you must use the amc script (probably not the right tool for the job though) then you could simply call the amc script on each archive or folder one after another, instead of calling it once for all files.

Re: Remove .rar & .zip right after successfully extracted

Posted: 15 Jun 2020, 17:27
by KrLx
Thanks for your answer! I found this https://github.com/arfoll/unrarall very useful script that does exactly what I want to do. After running this I will run filebot AMC to sort out everything :)