Permission & Access Issues

How to Prevent SharePoint File Deletion Through OneDrive Shortcuts

Jason MillerJason Miller Nov 3, 2026 868 views

Question details

The user wants to allow users to access SharePoint files via OneDrive shortcuts but prevent them from deleting the actual files.

How to Prevent SharePoint File Deletion Through OneDrive Shortcuts
Product
SharePoint and OneDrive
Device & OS
not provided
Scenario
Managing team access and file security in a shared SharePoint document library that users access through OneDrive shortcuts.
Observed behavior
Users with standard edit permissions can delete source files from SharePoint when interacting with them via synchronized OneDrive shortcuts.
Before you start

Ensure you have Site Owner or Full Control permissions in the SharePoint site to modify permission levels and reassign user access rights.

Solution 1Recommended

Create a Custom Permission Level in SharePoint

Restrict deletion capabilities by creating a custom SharePoint permission level that allows document editing but disables file and version deletion.

By default, the standard 'Edit' permission in SharePoint allows users to add, edit, and delete lists and documents. To prevent file deletion through OneDrive shortcuts, you must duplicate this permission level and remove the deletion rights.

1
Access Site Permissions

Navigate to your SharePoint site, click the Settings gear icon in the top right corner, select 'Site permissions', and then click 'Advanced permissions settings'.

2
Open Permission Levels

In the ribbon menu at the top, click on 'Permission Levels' to view all the existing role assignments.

3
Copy the Edit Permission

Click on the 'Edit' permission level. Scroll to the very bottom of the page and click the 'Copy Permission Level' button.

4
Disable Deletion Rights

Provide a name for the new level, such as 'Edit Without Delete'. Under the 'List Permissions' section, uncheck the boxes for 'Delete Items' and 'Delete Versions'.

5
Save and Assign

Click 'Create' to save the new custom level. Return to your site permissions to assign this new role to your users or groups, replacing their previous Edit permissions.

Create a Custom Permission Level in SharePoint
Permission Updated: Users can now sync and modify files via their OneDrive shortcuts, but any attempt to delete the files will be denied by SharePoint.
Free Microsoft Office alternative

Manage Documents Seamlessly with WPS Office

While configuring complex SharePoint and OneDrive permissions can be tedious, WPS Office offers a lightweight, highly compatible alternative for document creation and collaboration. Enjoy a user-friendly interface that feels familiar right out of the box, completely free of charge.

High compatibility with Microsoft Office formats including Word (docx), Excel (xlsx), and PowerPoint (pptx).Built-in cloud features for easy and secure document collaboration without complex permission configurations.Free to use with an intuitive interface, ensuring zero learning curve for new users.Lightweight installation that runs smoothly on almost any operating system.
QA img-9

Frequently Asked Questions

Does removing a OneDrive shortcut delete the files in SharePoint?

No, if you use the 'Remove' option on a shortcut in OneDrive, it only removes the link from your personal OneDrive view. The actual files and the SharePoint document library remain completely intact.

Why can users still delete files after I assigned the 'Edit Without Delete' permission?

SharePoint permissions are additive. If a user belongs to multiple SharePoint groups (for example, a custom group and the default Site Members group), they will receive the highest level of permissions granted across all groups. Ensure you have removed them from any group that still has 'Delete Items' enabled.

Can I prevent users from deleting folders but still allow them to delete individual files?

SharePoint applies permissions at the library, folder, or item level. To restrict folder deletion while allowing file deletion, you would need to break permission inheritance and apply specific, distinct permissions directly to the folders, which can become very difficult to manage at scale.