logo
search
OneDrive File Issues

Fix Cannot Delete, Rename, or Move a OneDrive File Error

Aamir Naveed AkramAamir Naveed Akram Oct 9, 2026 868 views

Question details

The user is unable to delete, rename, move, or edit a specific file in OneDrive because the system blocks the action.

How to Fix "Cannot Delete, Rename, or Move a OneDrive File" Error
Product
OneDrive
Device & OS
not provided
Scenario
Attempting to manage, reorganize, or delete a document stored and synced via Microsoft OneDrive.
Observed behavior
OneDrive displays an error stating that another user currently has the file open, locking the file and preventing any modifications, even if the file has never been shared.
Before you start

Ensure you have saved all recent changes to your documents locally. Temporarily check if you have the file open in any minimized background applications before proceeding with troubleshooting.

Solution 1Recommended

Close Office Apps and Restart OneDrive on All Devices

This resolves "ghost sessions" where OneDrive or an Office application on another device incorrectly holds a background lock on your file.

Often, the error is caused by a background sync process or a lingering Word session on one of the devices connected to your Microsoft account. Forcing all connections to close will typically release the file lock.

1
Close all Office applications

On your current computer, smartphone, and tablet, ensure that Microsoft Word, Excel, PowerPoint, and OneNote are completely closed.

2
Quit the OneDrive client

Right-click the OneDrive cloud icon in your computer's system tray (Windows) or menu bar (Mac), click on the 'Help & Settings' gear icon, and select 'Quit OneDrive' or 'Close OneDrive'.

3
Repeat on other devices

If you have OneDrive installed on a secondary laptop, phone, or tablet, temporarily close the app or disconnect from the internet on those devices to sever the connection.

4
Restart and retry

Restart your primary computer, relaunch OneDrive, and attempt to delete, rename, or move the file again.

Close Office Apps and Restart OneDrive on All Devices
Phantom File Locks Released: By closing the application on all endpoints, the Microsoft server drops the active session lock, allowing you to manage the file normally.
Free Microsoft Office alternative

Try WPS Office for Seamless Document and Cloud Management

If you are frustrated by recurring file-locking or syncing errors with Microsoft Office and OneDrive, consider switching to WPS Office. It provides a highly compatible, lightweight alternative with its own built-in, reliable cloud storage solution.

  1. 1. Download and install: Download WPS Office for free from the official website and install it on your PC or Mac.
  2. 2. Sign in for cloud features: Launch the application and sign in to activate your free WPS Cloud storage.
  3. 3. Manage your files: Easily create, edit, rename, and organize your documents without dealing with rigid multi-device file locks.
Fully compatible with Microsoft Word, Excel, and PowerPoint formats (.docx, .xlsx, .pptx).Includes 1GB of free, reliable WPS Cloud storage to seamlessly sync and manage files across all your devices.Lightweight installation that consumes fewer system resources and avoids aggressive background file locking.Free to use with a familiar, easy-to-navigate tabbed user interface for effortless document management.
microsoft office alternative - wps office

Frequently Asked Questions

Why does OneDrive say a file is in use when it isn't?

This typically occurs because a background process of Microsoft Word or another Office application hasn't fully closed its connection to the file. It can also happen if the file is currently syncing, or if a background antivirus scan is temporarily locking the file to inspect it.

Can I force delete a locked file in OneDrive?

Yes. You can attempt to force delete the file by accessing OneDrive through your web browser instead of your local file explorer. If that fails, unlinking your PC from OneDrive, deleting the local file, and relinking your account can often bypass the lock.

How do I unlock a file locked by another user in OneDrive?

If the file is shared, you must ask the other user to close the document. If it is not shared and you are the only user, the 'other user' is likely a ghost session from your phone, tablet, or secondary PC. Closing all Office applications and quitting the OneDrive app on all your devices will usually drop the phantom lock.