Opening a Microsoft Word document on your PC, network drive, or OneDrive share can sometimes be interrupted by an annoying modal prompt: “The file is locked for editing by another user. Open a ‘read-only’ copy or choose to receive notification when the file is available.” The prompt often lists your own name as the person currently locking the document, preventing you from saving your changes.
Whenever you open a document in Microsoft Word, Word automatically creates a hidden temporary lock file (known as an “owner file”, prefixed with ~$) inside the same folder. This lock file prevents two users from overwriting each other’s edits simultaneously. If Word crashes, your computer shuts down abruptly, or an orphaned background WINWORD.EXE process remains suspended in memory, the lock file is never deleted, leaving the document trapped in a permanent locked state. This guide explains how to release the file lock safely.
Method 1: Terminate Hanging Background Word Processes
If Word closed unexpectedly during a previous work session, a ghost instance of the Word executable may still be running in the background, maintaining an active handle lock on your document.
- Press Ctrl + Shift + Esc to launch the Task Manager.
- Click on the Processes tab.
- Scroll through the Apps and Background processes lists looking for Microsoft Word or WINWORD.EXE.
- If you find any running Word processes, click on each and click End task in the top toolbar.
- Once all Word processes are terminated, return to your document and double-click it. It will now open with full read-write editing permissions.
Method 2: Delete the Hidden Owner Lock File (~$…)
If ending the process does not clear the lock, the temporary owner lock file remains stranded on your storage drive.
- Ensure Microsoft Word is completely closed.
- Open File Explorer and navigate to the folder where your locked Word document is saved.
- Click on the View tab in the top menu of File Explorer, click Show, and ensure Hidden items is ticked.
- Look for a dimmed, translucent file that shares the name of your document but begins with a tilde and dollar sign (e.g. if your document is
Quarterly Report.docx, the lock file will be~$Quarterly Report.docx). - Select the
~$temporary file and press Delete. - Open your original document. Word will open it cleanly without any locked-for-editing warnings.
Method 3: Clear Office Document Cache
If the locked document is synchronized through OneDrive, SharePoint, or Microsoft Teams, Microsoft Office’s local upload center cache may be stuck in an uncommitted synchronization loop.
- Close all Microsoft Office applications (Word, Excel, PowerPoint).
- Press Windows + R to open the Run dialogue box.
- Enter the following path and press Enter:
%localappdata%\Microsoft\Office\16.0\OfficeFileCache - Select all files inside this directory (press Ctrl + A) and press Delete. (Note: This clears only local synchronization cache copies; your actual cloud documents remain safe on OneDrive).
- Relaunch Microsoft Word and open your cloud document.
Method 4: Check Windows File Sharing Locks on Network Drives
If the document resides on a shared corporate server or NAS drive, the server’s Server Message Block (SMB) session manager may be holding an active file lock.
- On the computer sharing the network drive (or ask your network administrator):
- Press Windows + R, type compmgmt.msc, and press Enter to open Computer Management.
- In the left tree, expand Shared Folders > Open Files.
- Scan the list for your locked Word document.
- Right-click the document entry and select Close Open File.
- This immediately breaks the orphaned network lock, allowing you to open and edit the document normally.
Word File Lock Diagnostics Reference Table
The table below provides a quick reference for diagnosing locked Word documents:
| Lock Type | Primary Root Cause | Recommended Fix |
|---|---|---|
| Locks with your own username | Orphaned background WINWORD.EXE process | Kill Microsoft Word in Task Manager |
| Hidden ~$ file visible in folder | Unclean shutdown left temporary owner token | Delete the hidden ~$filename.docx file |
| Locked on OneDrive / SharePoint | Stuck Office Document Cache synchronization | Purge files in %localappdata%\...\OfficeFileCache |
| Locked on office network server | Stale SMB network file handle | Close open file via Computer Management > Open Files |
Best Practices to Avoid Word Document Locks
To prevent file locking errors, always close your Word documents and exit the application before putting your laptop to sleep or shutting down your PC. When collaborating on shared cloud documents in OneDrive, utilizing Word’s real-time Co-authoring feature ensures that multiple team members can edit documents simultaneously without triggering single-user file locks.