ThinApp User’s Guide : Configuring Package Parameters : Configuring Sandbox Storage and Inventory Names : RemoveSandboxOnExit

The RemoveSandboxOnExit parameter deletes the sandbox and resets the application when the last child process exits.
ThinApp stores all application changes to the registry and file system locations with WriteCopy or Full isolation mode in the sandbox. ThinApp sets an initial value of the RemoveSandboxOnExit parameter that maintains consistent settings for the sandbox directory across multiple application runs.
If the application creates child processes, ThinApp does not delete the sandbox until all child processes exit. Applications might be designed to leave child processes in place that can block the cleanup operation. For example, Microsoft Office 2003 leaves the ctfmon.exe process. You can use a script to end the ctfmon.exe process and child processes to force the cleanup operation to occur.
You can decide at runtime whether to use the RemoveSandboxOnExit script API function to delete the sandbox on exit.
You can modify the RemoveSandboxOnExit parameter to delete the sandbox when the application exits. When multiple users share an application under one user name, you can delete the sandbox to eliminate the previous user’s registry and file system changes.