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.
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.
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.