Prevent users from deleting files when accessed from a link

Occasional Visitor

I have a SharePoint site which is private and only accessible by one user. This user creates "edit links" for specific files when requested by other people in the organization. So all but one user only accesses these files by direct links.


However, when a user opens, for instance, a word document via an edit link they can also move the file from the SharePoint site. And thereby deleting the file from the original site.


Is there any way to prevent this? Either by setting a general permission on the site similar to "only admins of this site can delete files". Or by creating another form of link (programmatically is fine) that lets the user open the file in "non delete mode". Or another way.



1 Reply

Hi @tomaseketorp,

This behaviour is 'by design' for the Edit sharing option.


  • When you share items with this type of link, people can edit files, and can add files in a shared folder
  • Recipients can forward the link, change the list of people sharing the files or folder, and change permissions for recipients.
  • If you're sharing a folder, people with Edit permissions can copy, move, edit, rename, share, and delete anything in the folder.

Unchecking this box means that people can view, copy or download your items without signing in.

Based on the problem you are experiencing, you may need to change the process for editing the document, such as downloading the file to complete changes for example and uploading the edited version to a different location for example.

The following article for OneDrive explains this in more detail: Share OneDrive files and folders (

I hope that helps.