Been Googling on this a bit and there are lots of solutions for this.

- Best practice would be to read the path of the OLK folder from the registry because it varies between systems.
- All files in this folder should be gone when outlook exits but when a file is specifically saved there it stays.
- Deleting all files and then deleting the folder would do the trick.
- To prevent outlook nagging about folders and stuff being in use be sure to completely exit Outlook before doing this.

This works for me.
The Sleep 1 is there because without it you might get a timing issue (at least I did).
 Code:
Break on

$folder = ReadValue("HKCU\Software\Microsoft\Office\11.0\Outlook\Security", "OutlookSecureTempFolder")

Del $folder + "\*.*"
Sleep 1
RD $folder
? @ERROR
? @SERROR

Sleep 3


This is for Outlook 2K3. See below for the correct reg key for your outlook/office version.

 Quote:

Outlook 97 - HKEY_CURRENT_USER\Software\Microsoft\Office\8.0\Outlook\Security
Outlook 98 - HKEY_CURRENT_USER\Software\Microsoft\Office\8.5\Outlook\Security
Outlook 2000 - HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Outlook\Security
Outlook 2002(XP) - HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Outlook\Security
Outlook 2003 - HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Security
Outlook 2007 - HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Outlook\Security
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.