How to Fix SharePoint and OneDrive Anyone Links Not Expiring
Question details
SharePoint and OneDrive 'Anyone' links remain accessible even after their configured expiration time has passed.

- Product
- SharePoint and OneDrive
- Device & OS
- not provided
- Scenario
- Setting an expiration period for publicly shared files or folders to automatically revoke access after a certain date.
- Observed behavior
- The 'Anyone' sharing links do not expire as expected and remain fully usable after the set expiration period.
Ensure you have access to the Microsoft 365 admin center to review organization-wide sharing policies, and clear your browser cache to confirm you are not loading a locally cached version of the shared file.
Verify Expiration Policies and Test New Links
Confirm that your tenant policies correctly enforce expiration for 'Anyone' links, and perform isolated tests to rule out specific file corruption.
Sometimes local file settings or conflicting admin center policies prevent links from expiring properly. Isolating the issue by creating brand new test links for different files helps determine if the problem is widespread.
Log in to the Microsoft 365 admin center, navigate to the SharePoint admin center, and go to Policies > Sharing to verify that the expiration time for 'Anyone' links is configured correctly.
Create a brand new test folder in your OneDrive or SharePoint directory and place a sample document inside.
Select the new folder, click 'Share', and generate a new 'Anyone' link with a 1-day expiration setting.
Wait for the 24-hour expiration period to pass, then attempt to access the exact generated link in an incognito window to verify if it successfully expired.

Contact Microsoft 365 Administrator Support
If links consistently fail to expire across multiple tests, the issue is likely a service-side bug requiring Microsoft support intervention.
Try WPS Office for Secure and Reliable File Sharing
Since non-expiring links are often caused by Microsoft 365 service-side delays, consider switching to WPS Office. It provides a lightweight, highly compatible alternative with robust built-in cloud storage and precise control over file sharing permissions.
- 1. Download WPS Office: Visit the official WPS website and download the free installation package for your device.
- 2. Install and Launch: Run the installer, follow the on-screen prompts, and launch the application.
- 3. Share Securely: Open any document, click the 'Share' button, and use WPS Cloud to generate secure, time-limited links that expire exactly when you need them to.

Frequently Asked Questions
Why do my SharePoint links still work after the expiration date?
This typically occurs due to service-side delays, temporary syncing issues in Microsoft 365, or incorrect policy configurations in the SharePoint admin center that override individual link settings.
Can I manually force a shared OneDrive link to expire?
Yes, you can manually revoke access at any time. Select the shared file, click 'Manage Access', navigate to the 'Links' tab, find the 'Anyone' link, and click the trash can icon to delete it immediately.
Does the expiration policy apply to links shared with specific people?
No, the expiration settings configured in the Microsoft 365 admin center typically only apply to 'Anyone' links (anonymous access). Links restricted to specific people within or outside your organization do not expire automatically unless explicitly set during creation.




