How to Fix Cannot Delete PDF Files from Network Drive with Preview Pane Enabled
Question details
Users are unable to delete PDF files stored on a network drive when the File Explorer Preview pane is active.

- Product
- Windows File Explorer / PDF Readers
- Device & OS
- Windows 10
- Scenario
- Attempting to delete a PDF file located on a network drive using Windows File Explorer with the preview pane turned on.
- Observed behavior
- Windows prevents the deletion, reporting that the file is open in another program. This locking issue specifically affects PDFs on network drives when the preview handler renders the file, whereas local files and other file types are unaffected.
Ensure that no other users on your network currently have the PDF file open, and temporarily close any open PDF reader applications on your computer.
Disable the Preview Pane in File Explorer
Turning off the Preview pane stops Windows from utilizing the PDF preview handler, instantly releasing the lock on the network file and allowing you to delete it.
The most direct way to resolve the 'file in use' error on network drives is to simply turn off the preview pane before attempting deletion. This bypasses the background process that keeps the PDF file locked.
Navigate to the network drive and open the specific folder that contains the PDF file you wish to delete.
Click on the 'View' tab located in the top ribbon menu of the File Explorer window.
Click the 'Preview pane' button to toggle it off. Alternatively, you can press the keyboard shortcut 'Alt + P' to quickly enable or disable the pane.
Once the preview pane is hidden, select the PDF file and press the 'Delete' key on your keyboard. The file should now be removed without any locking errors.

Change the Default PDF Preview Handler
If you rely on the Preview pane for your workflow, switching your default PDF application to a lighter alternative can prevent the preview handler from incorrectly locking network files.
Use WPS Office to Prevent PDF File Locking Errors
WPS Office offers a built-in, lightweight PDF reader that integrates smoothly with Windows. By setting WPS Office as your default PDF handler, you can preview and manage PDFs on network drives effortlessly without experiencing the persistent file-in-use locking errors common with heavier PDF applications.
- 1. Download and Install WPS Office: Visit the official WPS website, download the free WPS Office installer, and complete the quick installation process on your Windows PC.
- 2. Set as Your Default PDF Reader: Right-click any PDF file, choose 'Open with' > 'Choose another app', select WPS Office, and check the option to always use this app.
- 3. Manage Network PDFs Freely: Open File Explorer with the Preview pane enabled. You can now preview and delete your network PDFs seamlessly without background locking interruptions.

Frequently Asked Questions
Why does the File Explorer Preview pane prevent deleting PDF files?
When the Preview pane is enabled, Windows utilizes a background process called a preview handler (provided by your default PDF reader) to display the file's contents. Some handlers keep a strict read lock on the file while rendering it, which Windows interprets as the file being 'open in another program,' thereby preventing deletion.
Does this locking issue only affect files on a network drive?
Yes, this specific locking behavior is predominantly reported on mapped network drives, shared folders, or NAS environments. While local files are also previewed, the local file system handles the preview lock release much faster, usually allowing the files to be deleted normally.
Can I keep the Preview pane enabled and still delete the file?
Yes. You can bypass the lock without disabling the pane by simply clicking on a different file (like an image or text file) in the same folder first. This shifts the preview handler's focus away from the PDF, releasing the lock so you can safely delete the PDF file.




