WinRAR has an option to delete compressed file after successful extraction.Not seeing similar in Op

If possible - how to do it in Opus - only after succesful extraction ?

If not, appreciate if you can add it. You do great work! :wink:

P.S. still waiting for Opus FTP to match FileZilla performance - multi-threaded/connection's up/download :slight_smile:

Have a good rest of the week Jon, Greg + Leo + enjoyable weekend!

That setting is only available in the WinRAR UI. It cannot be changed on the command line.

But Opus doesn't use the Winrar executabe to unpack, I suppose? And even if it does, I suspect the WinRar UI is irrelevant to the question.

No, at best Opus will use the DLL if you check this:

The EXE will follow the settings here:

So to automatically delete the archive file you'd need to use the WinRAR context menu or a button.

It uses either unrar.dll or 7z.dll depending on your setup (Preferences/Zip).
I can't say if any of these offer the ability to do it. It is most likely something that is done outside of these lib, since it's not directly related to the compression/extraction process.

These are good, correct and informative answers.

I was just thinking: given that Opus launches these commands (either internal code or by launching the winrar dll), it gets the return code so it could add a checkbox to that window saying "Delete the archive when unpacked" and then do exactly that.

The best alternative would be a button in which we run the exact same call that Opus does when using the winrar dll, and then do the delete. But what the exact command is that Opus does to call winrar, is not clear.

Have a look at Smart archive extraction (enhanced). Quite some effort went into its development and so far no bugs have surfaced :slight_smile:

Thanks for the useful hint. Again, a perfect example of how pushing an issue is sometimes like squeezing a lemon - the lemon being @lxp in this case (no harm intended). The juice just gets more and better.

PS. For people like me, who cannot possibly read this forum on a constant / daily basis, discovering things like this "smart archive extraction" tool all by ourselves isn't evident. I'm tempted to squeeze the lemon even further - maybe the best juice is still sitting inside.