Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

May 28, 2009 12:00 AM

Deleting a PST file recently opened in Outlook

Windows IT Pro
InstantDoc ID #101937
Rating: (1)

Executive Summary:

Learn about registry edit you can use to solve the problem of deleting a .pst file that's been recently opened in Outlook.


If you use Outlook to open a Personal Storage (PST) file, the PST file cannot be edited, moved or deleted. It‘s locked by Outlook for the duration. But that lock remains for 30 minutes by default, even after the PST file is closed in Outlook. The good news is that this value can be changed through a registry edit.

Sometimes you might have to work with archived PST files, mailbox export PST files, or even PST files as personal backups separate from your primary email storage. You can select File, Open, Outlook Data File to mount an existing PST file for viewing. When you’re finished, you can right-click the top of the PST file hierarchy in the Folder View and select Close <PST_File_Label>. At this point you may want to move or delete the PST file. Attempting to do so will return an error such as this one from Outlook 2007 on Windows Vista:

The action cannot be completed because the file is open in another program.

Outlook maintains a lock on the PST file for 30 minutes. Typically, you would close Outlook to gain immediate access to that PST file. There is a registry edit that can reduce the time Outlook keeps its grip on a PST file after closing it. In the following key, you add a DWORD entry called PSTDisconnectDelay:

HKEY_CURRENT_USER\Software\Microsoft\Office\<Version>\Outlook\PST\

The PST key may not exist and may need to be created. The value for PSTDisconnectDelay here is time entered in seconds. So a value of 30 using the Decimal base would keep a PST file locked by Outlook for half a minute after closing the PST file instead of the default 1800 seconds (30 minutes). Outlook would need to be restarted to assume this change as it reads the registry at startup.

Related Content:

ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.