How to Stop Sharing Files in OneDrive: Quick Guide
In this article
To stop sharing files or folders in OneDrive, you must revoke the existing permissions for specific people or remove public links. This action immediately prevents those users from accessing the content, though it does not delete the files from your storage. Before beginning, ensure you are signed into the correct Microsoft account that owns the files, as only the owner or designated editors can change sharing settings.
What You'll Need
- A web browser on a computer (Edge, Chrome, Firefox) or the OneDrive mobile app installed on iOS or Android.
- The specific file or folder you wish to unshare.
- Your Microsoft account login credentials.
Step-by-Step
- Navigate to the File: Open OneDrive in your web browser or launch the desktop/mobile app. Locate the specific file or folder that is currently being shared. Note that menu labels may differ slightly depending on whether you are using the web interface, the Windows desktop app, or a mobile device.
- Access Sharing Settings: On the web, right-click the file and select Share. Alternatively, click the three-dot menu icon next to the file name and choose Manage Access. In the mobile app, tap the three dots above the file and select Details or Manage Access.
- Identify Current Permissions: A panel will open showing who has access. Look for sections labeled People with access or Links. You will see names of individuals or link types such as "Anyone" or "Specific people." Note that if you see a generic link (e.g., "Anyone with the link"), this is often the easiest target to remove.
- Remove Link Access: If a public or organization-wide link exists, click the X next to the link description or select Stop Sharing from the dropdown menu associated with that link. Confirm any prompts that appear. This breaks the URL so anyone holding it can no longer view the file.
- Revoke Individual Access: To remove specific people, find their name in the list. Click the dropdown arrow next to their name or permission level (e.g., "Can edit") and select Remove access. Repeat this for every person you wish to block.
- Confirm Changes: Once all unwanted users or links are removed, close the sharing panel. The file remains in your OneDrive but is now private to you (unless you have explicitly added new collaborators).
Common Mistakes
A frequent error is confusing stopping sync with stopping sharing. Unlinking your PC from OneDrive removes the file from your local computer but does not stop others from accessing it online. Another mistake is assuming that deleting a file stops sharing; while it removes access, it also destroys the data. Always aim to simply revoke permissions first. Additionally, users often forget to check for view-only links created by previous owners if they inherited a shared folder.
Tips
If you need to share with someone else later, create a fresh link rather than re-inviting old users. For sensitive documents, avoid using the Anyone link option, as these are less secure and harder to track. Use the Set password feature available for external links to add an extra layer of security. Regularly audit your Manage Access pages, especially for large folders where sub-files might inherit different permissions.
Troubleshooting
If the Remove access button is grayed out, you likely do not have Owner permissions. Only the original uploader or the site administrator can remove access in this case. Contact the file owner to request removal. If changes do not reflect immediately, wait a few minutes as OneDrive caches permissions across its servers. Clearing your browser cache or logging out and back in can force a refresh. If you cannot find the sharing panel, ensure you are looking at the correct file version and not a shortcut. If you accidentally revoked access to a colleague, you can restore it by clicking Add people again and entering their email address.
Frequently Asked Questions
Does stopping sharing delete the file?
No. Revoking permissions keeps the file intact in your OneDrive storage; it only prevents specified users from viewing or editing it.
Can I stop sharing a file without notifying the user?
Generally, no. When you remove someone's access, OneDrive sends them an email notification stating that their access has been revoked. There is no official way to hide this notification.
How do I stop sharing if I don't know who shared it?
Open Manage Access on the file. If you are not listed as an Owner or Editor, you cannot change permissions. You must contact the person who originally shared the file or the site administrator.
What happens to downloaded copies?
Stopping sharing does not delete files already downloaded to another user's device. It only prevents future access via the cloud link.
Can I set an expiration date instead of removing access?
Yes. When creating a link, you can choose to set an expiration date. However, you cannot retroactively add an expiration date to an existing active link; you must remove the old link and create a new one with the expiry setting enabled.