How to Fix Cannot Rename or Delete Files in SharePoint Online
Question details
The user is unable to rename or delete files and folders after copying them to a SharePoint Online document library.

- Product
- SharePoint Online
- Device & OS
- not provided
- Scenario
- Attempting to manage, rename, or delete files that have been uploaded or copied to a document library.
- Observed behavior
- Files and folders act as read-only, preventing the user from applying new names or deleting the items from the library.
Verify that you are logged into the correct Microsoft account with access to the SharePoint site, and ensure no other users currently have the file open.
Verify Permissions and Rename Directly in SharePoint Online
Check your access level in the web interface and modify the file directly to bypass local synchronization restrictions.
Often, files cannot be renamed or deleted from a synced local folder due to background sync locks or restricted inheritance policies. Performing the action directly on the SharePoint web interface is the most reliable way to confirm and utilize your permissions.
Log in to SharePoint Online through your web browser and navigate to the document library containing the locked file.
Hover over the file or folder you want to rename or delete and check the circular selection box to its left.
Click the 'Details' (i) icon in the upper right corner of the screen. Scroll down the pane to the 'Has access' section to verify if you have at least 'Edit' permissions.
If you have Edit permissions, hover over the file name at the top of the details pane to rename it, or click the 'Delete' button in the top command bar.

Rename Files Locally Before Uploading
A temporary workaround if you cannot get immediate permissions to rename files already residing on SharePoint.
Manage and Edit Your Documents Seamlessly with WPS Office
While resolving complex SharePoint permissions, you still need a reliable office suite for local document editing. WPS Office is a highly compatible, free alternative to Microsoft Office, letting you create and edit your essential files effortlessly before uploading them to the cloud.

Frequently Asked Questions
Why are my SharePoint files opening as read-only?
Files may open in read-only mode if the document library requires files to be checked out, if the file is currently locked by another user editing it, or if your account has only been granted 'View' permissions.
How can I check if a SharePoint policy is preventing file deletion?
Certain Retention Policies or eDiscovery holds set by administrators can prevent files from being deleted or modified. Only a SharePoint or Global Administrator can review and adjust these compliance policies in the Microsoft Purview compliance portal.
Does syncing SharePoint with OneDrive affect my ability to rename files?
Yes, local sync clients can sometimes lock files if a background sync is pending or stuck. If you cannot rename a synced file in File Explorer, try pausing the OneDrive sync or performing the action directly in the SharePoint web interface.




