Delete All Sandboxes Contents at once - Right Click Menu

Ideas for enhancements to the software
Post Reply
Mr.X
Posts: 583
Joined: Sat Jul 13, 2013 9:34 am
Location: Mexico

Delete All Sandboxes Contents at once - Right Click Menu

Post by Mr.X » Mon Jul 14, 2014 10:38 pm

Many times I need to delete contents of all sandboxes at once. Could be possible to add an option to do so by right clicking the Sandboxie Control just like in the image? Just below the Disable Forced Programs function? It would be very handy.

Image

Please note I'm aware of "Automatically delete contents of sandbox" function, but you should know some sandboxes are using it and others don't. I'm planning to create more sandboxes some with "Automatically delete contents of sandbox" function on and others off.

Another last and obvious request is, if the "Delete All Sandboxes Context at Once" is implemented then the following window must not appear when delete command is invoked although it's still good for each separated sandbox:

Image
Windows 8.1 x64/x86 EN | Sandboxie latest beta or stable | All software latest versions unless stated otherwise

Mr.X
Posts: 583
Joined: Sat Jul 13, 2013 9:34 am
Location: Mexico

Re: Delete All Sandboxes Contents at once - Right Click Menu

Post by Mr.X » Wed Dec 24, 2014 1:00 pm

bump
Currently I've got 20 sandboxes. Sometimes some of them have contents within but don't know which ones at a certain moment, then when I want to delete contents (to make sure all sandboxes are empty) I have to pass one by one. How to delete contents of all sandboxes simultaneously, in just one click?
Windows 8.1 x64/x86 EN | Sandboxie latest beta or stable | All software latest versions unless stated otherwise

bo.elam
Sandboxie Guru
Sandboxie Guru
Posts: 2824
Joined: Wed Apr 22, 2009 9:17 pm

Re: Delete All Sandboxes Contents at once - Right Click Menu

Post by bo.elam » Wed Dec 24, 2014 2:22 pm

Mr.X wrote:Many times I need to delete contents of all sandboxes at once. Could be possible to add an option to do so by right clicking the Sandboxie Control just like in the image?
The option is available already. If you click Terminate all programs, all programs running in any sandbox are terminated and all sandboxes get deleted except the ones that you have set to "Never remove this sandbox or delete its contents."

Bo

Mr.X
Posts: 583
Joined: Sat Jul 13, 2013 9:34 am
Location: Mexico

Re: Delete All Sandboxes Contents at once - Right Click Menu

Post by Mr.X » Wed Dec 24, 2014 2:38 pm

Thanks a lot Bo, makes sense to me indeed. 8)
Windows 8.1 x64/x86 EN | Sandboxie latest beta or stable | All software latest versions unless stated otherwise

Guest10
Posts: 5127
Joined: Sun Apr 27, 2008 5:24 pm
Location: Ohio, USA

Re: Delete All Sandboxes Contents at once - Right Click Menu

Post by Guest10 » Fri Dec 26, 2014 4:37 pm

Mr.X wrote:bump
Currently I've got 20 sandboxes. Sometimes some of them have contents within but don't know which ones at a certain moment, then when I want to delete contents (to make sure all sandboxes are empty) I have to pass one by one. How to delete contents of all sandboxes simultaneously, in just one click?
Terminate All Programs will not delete the contents of all sandboxes, unless all sandboxes are set to auto-delete as soon as the programs using them are ended.
Are you sure you want to delete the contents of all of them? Any program that's installed in a sandbox would be gone, even if it's not in use at the time.

The last time I tried check marking the "Sandboxie" item in CCleaner, it would delete the contents of all sandboxes that are in the default Container Folder location, but not if the sandbox has been relocated using the FileRootPath setting. I didn't like that since I have programs installed inside of sandboxes, so I never check mark that item in CCleaner.
Paul
Win 10 Home 64-bit (w/admin rights) - Zone Alarm Pro Firewall, MalwareBytes Premium A/V, Firefox, Thunderbird
Sandboxie user since March 2007

Mr.X
Posts: 583
Joined: Sat Jul 13, 2013 9:34 am
Location: Mexico

Re: Delete All Sandboxes Contents at once - Right Click Menu

Post by Mr.X » Fri Dec 26, 2014 4:45 pm

Guest10 wrote:
Mr.X wrote:bump
Currently I've got 20 sandboxes. Sometimes some of them have contents within but don't know which ones at a certain moment, then when I want to delete contents (to make sure all sandboxes are empty) I have to pass one by one. How to delete contents of all sandboxes simultaneously, in just one click?
Terminate All Programs will not delete the contents of all sandboxes, unless all sandboxes are set to auto-delete as soon as the programs using them are ended.
Are you sure you want to delete the contents of all of them? Any program that's installed in a sandbox would be gone, even if it's not in use at the time.

The last time I tried check marking the "Sandboxie" item in CCleaner, it would delete the contents of all sandboxes that are in the default Container Folder location, but not if the sandbox has been relocated using the FileRootPath setting. I didn't like that since I have programs installed inside of sandboxes, so I never check mark that item in CCleaner.
True. Terminate All Programs feature won't delete the contents of all sandboxes at once, besides some of them are NOT set to auto-delete as soon as the programs are terminated.
Yes, I am sure I want to delete all contents of all sandboxes at once. So I need that command/function to be added when right-click. They just need to add a warning message and confirm button so people can't delete anything mistakenly.
Windows 8.1 x64/x86 EN | Sandboxie latest beta or stable | All software latest versions unless stated otherwise

bo.elam
Sandboxie Guru
Sandboxie Guru
Posts: 2824
Joined: Wed Apr 22, 2009 9:17 pm

Re: Delete All Sandboxes Contents at once - Right Click Menu

Post by bo.elam » Fri Dec 26, 2014 6:03 pm

I think the Terminate all programs option is not perfect for what you want to do but I think it works alright. The only sandboxes that don't get deleted are the ones you set not to delete or the ones that you haven't selected anything in Delete invocation. If it was me who wanted an option to delete all sandboxes at once, since in my personal case selecting the option not to delete contents really means that, not deleting the contents of those sandboxes really works perfect. Same with sandboxes where I dont select anything in Delete invocation. But this is me.

Guest10 mentioned CCleaner. I don't like using CCleaner to delete contents but I leave the Sandboxie setting ticked. I use it as a warning to let me know when I forgot to delete contents of a sandbox. I install programs in sandboxes but I like to delete contents after I finish using the program. Usually I set the sandbox not to delete on closing and after installing and using the program, I remove that setting and delete the sandbox manually. When I forget to delete the sandbox, CCleaners warns me and then I delete it using SBIE. You could use CCleaner to delete contents on all sandboxes but empty folders remain if you do so.

Bo

Mr.X
Posts: 583
Joined: Sat Jul 13, 2013 9:34 am
Location: Mexico

Re: Delete All Sandboxes Contents at once - Right Click Menu

Post by Mr.X » Fri Dec 26, 2014 6:33 pm

@ Bo - Guest10
Thanks for your suggestions. Too much hassle for me the use of ccleaner. I'd still like to see this feature as part of Sandboxie when right-click the systray icon, guess is not that much to ask for... 8)
Windows 8.1 x64/x86 EN | Sandboxie latest beta or stable | All software latest versions unless stated otherwise

bo.elam
Sandboxie Guru
Sandboxie Guru
Posts: 2824
Joined: Wed Apr 22, 2009 9:17 pm

Re: Delete All Sandboxes Contents at once - Right Click Menu

Post by bo.elam » Fri Dec 26, 2014 7:37 pm

Mr.X wrote:I'd still like to see this feature as part of Sandboxie when right-click the systray icon, guess is not that much to ask for... 8)
I just thought of something, Mr X. If the feature was available, I wont need CCleaner warning me about a sandbox that I forgot to delete :). Thats good.

Bo

Mr.X
Posts: 583
Joined: Sat Jul 13, 2013 9:34 am
Location: Mexico

Re: Delete All Sandboxes Contents at once - Right Click Menu

Post by Mr.X » Fri Dec 26, 2014 7:45 pm

bo.elam wrote: I just thought of something, Mr X. If the feature was available, I wont need CCleaner warning me about a sandbox that I forgot to delete :). Thats good.

Bo
Exactly, I really haven't see it from your own perspective, I mean the way you use it, so even more reason to implement that feature.
Windows 8.1 x64/x86 EN | Sandboxie latest beta or stable | All software latest versions unless stated otherwise

RooJ
Posts: 83
Joined: Sun Dec 21, 2014 2:47 pm

Re: Delete All Sandboxes Contents at once - Right Click Menu

Post by RooJ » Mon Dec 29, 2014 8:44 am

I'd really like to see this feature added also.
I currently use a RAMDisk which clears the contents of all sandboxes on reboot, but having the option below "Terminate all programs" would be hugely helpful. The feature would still need to check the settings for "Never remove this sandbox or delete its contents" as in that case you could still mark certain sandboxes to not be cleared during the process.

RooJ
Posts: 83
Joined: Sun Dec 21, 2014 2:47 pm

Re: Delete All Sandboxes Contents at once - Right Click Menu

Post by RooJ » Mon Jan 05, 2015 3:36 pm

Hi Mr.X,

I just stumbled across this:

http://www.sandboxie.com/?StartCommandLine

It seems sandboxie has commandline options to stop programs and delete contents of sandboxes. With the commandline arguments you can easily create a batchfile to do what you want. For example If I wanted to create a batchfile to delete the contents of both my IE sandbox and Firefox sandbox I could add the following in notepad and save it as a .bat:

Code: Select all

F:\Apps\Sandboxie\Start.exe /box:SBIExplorer /terminate
F:\Apps\Sandboxie\Start.exe /box:SBIExplorer delete_sandbox

F:\Apps\Sandboxie\Start.exe /box:SBFirefox /terminate
F:\Apps\Sandboxie\Start.exe /box:SBFirefox delete_sandbox
You can obviously add in as many sandboxes as you want.

I guess with a little extra coding you could create a script that both runs the above and then checks for the existence of your sandboxes after the deletion to ensure they're fully cleared.

Hope this helps.

Mr.X
Posts: 583
Joined: Sat Jul 13, 2013 9:34 am
Location: Mexico

Re: Delete All Sandboxes Contents at once - Right Click Menu

Post by Mr.X » Mon Jan 05, 2015 3:44 pm

@ Rooj
Thank you so much. I'll implement this asap 8)
Windows 8.1 x64/x86 EN | Sandboxie latest beta or stable | All software latest versions unless stated otherwise

RooJ
Posts: 83
Joined: Sun Dec 21, 2014 2:47 pm

Re: Delete All Sandboxes Contents at once - Right Click Menu

Post by RooJ » Sat Jan 17, 2015 3:32 pm

Just a further thought on this for anyone else thinking of doing it. I've found quite often I'll get a sandboxie error message complaining it can't delete a file, on investigation the file is always deleted anyway. Due to the messages it's best to suppress errors using delete_sandbox_silent:

Example:

Code: Select all

F:\Apps\Sandboxie\Start.exe /box:SBSteam /terminate
F:\Apps\Sandboxie\Start.exe /box:SBSteam delete_sandbox_silent
F:\Apps\Sandboxie\Start.exe /box:SBTOR /terminate
F:\Apps\Sandboxie\Start.exe /box:SBTOR delete_sandbox_silent
At the bottom of the batchfile It's worth adding a line like the following:

Explorer.exe "R:\Sandbox\user"

The above opens the sandbox folder in explorer after deletion is complete meaning you can immediately see that all sandboxes have been successfully cleared (change path to that of your sandbox folder).
Last edited by RooJ on Sat Jan 17, 2015 3:35 pm, edited 1 time in total.

Mr.X
Posts: 583
Joined: Sat Jul 13, 2013 9:34 am
Location: Mexico

Re: Delete All Sandboxes Contents at once - Right Click Menu

Post by Mr.X » Sat Jan 17, 2015 3:35 pm

@ Rooj
Thanks a lot.
Windows 8.1 x64/x86 EN | Sandboxie latest beta or stable | All software latest versions unless stated otherwise

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest