Prevent users from deleting files when accessed from a link

Copper Contributor

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.



2 Replies

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.



@PeteCox365 I have worked out how to resolve this. Go to Site Contents, navigate to the file you want to share, click on the three dots beside the file, copy the link and then paste that link into your email. However type in &download=1 at the end of the link you copied.  This then changes the link to download the file directly from the SharePoint site and therefore removes the possibility of a person being able to delete or move the file from its folder on SharePoint.