You set a sharing expiration date on a OneDrive for Business file or folder, but existing shared links from before that date continue to work. This happens because OneDrive applies expiration settings only to links created after the policy change, not retroactively. In this article, you will learn why old links bypass the expiration date and how to manually expire or replace them.
Key Takeaways: Fixing Expiration Dates on Old OneDrive Shared Links
- OneDrive sharing settings > Expiration date: Controls only links created after the date is set. Old links are not affected.
- OneDrive web > Share > Manage access: Use this panel to manually remove or update expiration on individual existing links.
- OneDrive admin center > Sharing policies: Enforce a default expiration range for all new links tenant-wide, but existing links still require manual action.
Why OneDrive Expiration Dates Do Not Apply to Old Shared Links
OneDrive for Business treats each shared link as an independent permission object. When you set or change an expiration date in the file or folder sharing settings, that change applies only to the sharing policy template for new links. Links that were already generated before the expiration date was configured retain their original permission settings, which typically have no expiration or a different expiration value.
This behavior is by design. OneDrive does not retroactively scan and update existing links because doing so could break workflows where users rely on long-lived shared links. The system assumes that if you want a link to expire, you should set the expiration at the time of link creation or use a tenant-wide policy that applies to all new shares.
The same limitation applies to other sharing controls such as password protection and download restrictions. Changing these settings after a link is shared does not affect the link itself. You must manage each link individually or delete and re-share the item with the new policy.
Steps to Apply Expiration Dates to Existing OneDrive Shared Links
To enforce an expiration date on links that were created before the policy was set, you must manually update or replace those links. Use the following methods depending on how many links you need to change.
Method 1: Update Expiration for Individual Links Using OneDrive Web
- Open OneDrive in your browser
Go to https://onedrive.live.com and sign in with your work or school account. - Navigate to the file or folder with old links
Browse to the item that has shared links you want to expire. - Right-click the item and select Manage access
Alternatively, click the circle check box next to the item and then click the Manage access button in the toolbar at the top of the page. - Locate the link you want to expire
In the Manage access panel, you will see a list of all people and links that have access. Click the Links tab if it is not already selected. - Click the three dots next to the link and select Edit link
This opens the link settings. - Set the expiration date
Under Expiration, click the date picker and choose the date you want the link to stop working. Click Apply to save the change. - Repeat for each old link
You must edit each link individually. OneDrive does not support bulk editing of existing link expiration dates.
Method 2: Delete Old Links and Create New Ones with Expiration
- Open the Manage access panel
Follow steps 1 through 4 from Method 1. - Delete the old link
Click the three dots next to the link and select Delete link. Confirm the deletion. - Create a new share with an expiration date
Right-click the file or folder and select Share. In the sharing dialog, click Link settings. Under Expiration, set the desired date. Copy the new link and send it to the intended recipients.
Method 3: Use Microsoft 365 Admin Center to Enforce Default Expiration for New Links
- Go to the Microsoft 365 admin center
Sign in at https://admin.microsoft.com with an account that has global admin or SharePoint admin privileges. - Navigate to SharePoint admin center
In the left navigation, expand Admin centers and select SharePoint. - Open sharing policies
In the SharePoint admin center, click Policies in the left menu, then click Sharing. - Set a default expiration range
Under Expiration for shared links, select These links must expire within this many days and enter a number (for example, 30). This applies only to new links created after the policy is saved. - Click Save
Existing links remain unaffected. You must still manage them manually using Method 1 or 2.
If Old Links Still Work After Setting Expiration
I set an expiration date on the file, but the old link still works
This is expected behavior. The expiration date you set on the file or folder via the Share dialog or the Details pane applies only to the default sharing policy for that item. Links created before that change retain their original settings. Use the Manage access panel to edit or delete each old link as described above.
I changed the tenant-wide expiration policy, but existing links are not expiring
Tenant-wide policies for link expiration apply only to links created after the policy is saved. Links that were shared before the policy change keep their original expiration settings, which may be Never. There is no admin tool to retroactively expire all old links. You must ask users to review and update their shared links using the Manage access panel, or use a PowerShell script to enumerate and update links programmatically if you have SharePoint admin permissions.
I want to expire all old links for a specific folder quickly
The fastest method is to delete all existing links for that folder and re-share with expiration dates. In the Manage access panel, you can delete links one by one. For folders with many links, consider using the Stop sharing option on the folder itself, which removes all sharing links and permissions. Then re-share the folder with the expiration date set at creation time.
OneDrive Shared Link Expiration: Default vs Manual Control
| Item | Default tenant policy | Manual link editing |
|---|---|---|
| Applies to | All new links created after policy save | Individual existing links only |
| Retroactive effect | No | Yes, per link |
| Admin control required | Yes — SharePoint admin or global admin | No — any user with edit access to the item |
| Bulk operation | Yes — applies to all new shares tenant-wide | No — must edit each link separately |
| Can revert after setting | Yes — change policy value or remove expiration requirement | Yes — re-edit the link and clear the date |
OneDrive does not provide a single button to apply expiration retroactively to all existing shared links. The tenant policy only affects future shares. Manual editing through the Manage access panel is the only way to enforce expiration on old links. For compliance scenarios, consider creating a new sharing policy and asking users to replace old links.