Former Employee Files Remain in the Old Tenant: OneDrive for Business Fix
🔍 WiseChecker

Former Employee Files Remain in the Old Tenant: OneDrive for Business Fix

When a former employee leaves your organization, their OneDrive files often remain in the original tenant even after you delete their user account. This happens because OneDrive does not automatically transfer ownership or delete content when an account is removed from Microsoft 365. Without intervention, these orphaned files can accumulate, consume storage space, and create data retention or compliance risks. This article explains why former employee files stay in the old tenant and provides the exact steps to locate, transfer, or delete them using the Microsoft 365 admin center and OneDrive admin tools.

Key Takeaways: How to Remove Former Employee Files from the Old Tenant

  • Microsoft 365 admin center > Users > Deleted users: Restore the former employee account temporarily to regain access to their OneDrive.
  • SharePoint admin center > More features > User profiles: Manage OneDrive site ownership and assign a new owner to orphaned sites.
  • Microsoft 365 admin center > Billing > Licenses: Remove the former employee license after transferring files to avoid ongoing charges.

ADVERTISEMENT

Why Former Employee Files Remain in the Old Tenant

When a user is deleted from Microsoft 365, their OneDrive site is not automatically deleted. The site enters a retention period that lasts 30 days by default, during which the files remain intact but inaccessible to anyone except global admins. If no action is taken, the site moves to a deleted state after 30 days and is permanently removed after 93 days total. During this window, the files still consume tenant storage and may be subject to eDiscovery holds or retention policies. The core cause is that OneDrive treats each user site as an independent SharePoint site collection, and deleting the user does not automatically trigger site deletion or file transfer. IT administrators must manually intervene to either assign a new owner, download the files, or delete the site.

Steps to Transfer or Remove Former Employee Files

To fix the issue of former employee files remaining in the old tenant, follow these steps in order. You need global admin or SharePoint admin permissions in Microsoft 365.

  1. Restore the deleted user account in the admin center
    Sign in to the Microsoft 365 admin center. Go to Users > Deleted users. Find the former employee account and select Restore. This action re-creates the user object and makes the OneDrive site accessible again. The account remains unlicensed after restoration.
  2. Access the OneDrive site for the restored user
    Open the SharePoint admin center at https://admin.microsoft.com/SharePoint. Select More features > User profiles > Manage user profiles. Search for the restored user and click their profile. Under OneDrive, click Manage site owners. Add yourself or another active user as a site owner.
  3. Transfer ownership of the OneDrive files
    Once you have site owner access, open the former employee’s OneDrive URL directly. The URL format is https://[tenant]-my.sharepoint.com/personal/[user_UPN]. Select all files and folders, then choose Copy to or Move to to transfer them to an active user’s OneDrive or a SharePoint document library. Alternatively, use the Download option to save a local copy.
  4. Delete the OneDrive site after file transfer
    Return to the SharePoint admin center. Go to Sites > Active sites. Locate the former employee’s OneDrive site. Select the site and click Delete. Confirm the deletion. The site moves to the recycle bin and is permanently removed after 93 days.
  5. Remove the restored user account again
    Go back to the Microsoft 365 admin center. Navigate to Users > Active users. Select the restored user account and click Delete user. This removes the account from the tenant permanently.

ADVERTISEMENT

If Former Employee Files Still Appear After the Main Fix

User account is already permanently deleted beyond 30 days

If more than 30 days have passed since the user was deleted, the account cannot be restored via the admin center. In this case, contact Microsoft Support to recover the deleted user within the 93-day window. If the 93-day period has passed, the OneDrive site and all files are permanently gone and cannot be recovered.

OneDrive site shows as orphaned with no owner

An orphaned OneDrive site has no assigned owner. To fix this, use SharePoint Online Management Shell. Run the command Set-SPOUser -Site [site-url] -LoginName [new-owner-upn] -IsSiteCollectionAdmin $true. This assigns a new site collection admin and allows file access.

Files are under legal hold or retention policy

If the former employee’s files are subject to a litigation hold or a Microsoft 365 retention policy, the OneDrive site cannot be deleted until the hold is removed. Check the Compliance center > Data lifecycle management > Retention policies and eDiscovery > Holds. Remove the hold or policy for that specific user before attempting site deletion.

Manual Transfer vs PowerShell Automation: Key Differences

Item Manual Transfer via Admin Center PowerShell Automation
Permissions needed Global admin or SharePoint admin Global admin + SharePoint admin role
Time required 15–30 minutes per user 5–10 minutes to script for many users
Error handling Manual review of each file Built-in error logging required
Best for One-off or occasional offboarding Bulk offboarding of 10+ users

Manual transfer through the admin center works well for a small number of former employees. For bulk operations, use the Set-SPOUser and Remove-SPOSite cmdlets in SharePoint Online Management Shell to automate ownership transfer and site deletion. Always test PowerShell scripts on a single user first to avoid accidental data loss.

You can now locate, transfer ownership of, and delete former employee OneDrive files from the old tenant using the admin center or PowerShell. To prevent future accumulation, configure the OneDrive retention policy in the SharePoint admin center to automatically delete sites after a set number of days post-account deletion. For compliance-sensitive data, always verify that no eDiscovery holds or retention policies are active before removing a site.

ADVERTISEMENT