How to Prevent SharePoint File Deletion Through OneDrive Shortcuts
Question details
The user wants to allow users to access SharePoint files via OneDrive shortcuts but prevent them from deleting the actual files.

- 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.
Ensure you have Site Owner or Full Control permissions in the SharePoint site to modify permission levels and reassign user access rights.
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.
Navigate to your SharePoint site, click the Settings gear icon in the top right corner, select 'Site permissions', and then click 'Advanced permissions settings'.
In the ribbon menu at the top, click on 'Permission Levels' to view all the existing role assignments.
Click on the 'Edit' permission level. Scroll to the very bottom of the page and click the 'Copy Permission Level' button.
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'.
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.

Educate Users on Removing OneDrive Shortcuts vs. Deleting Files
Clarify the correct process for users to remove a SharePoint folder from their OneDrive without deleting the actual files.
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.

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.




