Unpack Archives And Delete One By One

I am wondering if there is a way to delete archives (zip and rar) as they are unpacked, and not as a group at the end of the unpacking?

I have a button with this code, but I am looking for something that does not wait until the end to do the deletion. I am always afraid when I have a lot of files be unloaded and something might happen, then I have to go back and delete the unpacked files and start again. Thanks.

SELECT *.(zip|rar) Copy EXTRACT HERE DELETE