Remove .rar & .zip right after successfully extracted

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
KrLx
Posts: 5
Joined: 15 Jun 2020, 11:51

Remove .rar & .zip right after successfully extracted

Post 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!
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post 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.
:idea: Please read the FAQ and How to Request Help.
KrLx
Posts: 5
Joined: 15 Jun 2020, 11:51

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

Post 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 :)
Post Reply