Are OneDrive folders really being deleted?

%3CLINGO-SUB%20id%3D%22lingo-sub-686816%22%20slang%3D%22en-US%22%3EAre%20OneDrive%20folders%20really%20being%20deleted%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-686816%22%20slang%3D%22en-US%22%3E%3CP%3EI've%20just%20exported%20the%20OneDrive%20usage%20report%2C%20and%20I%20was%20very%20surprised%20to%20see%20it%20still%20listing%20OneDrive%20details%20for%20users%20who%20left%20a%20long%20time%20ago.%26nbsp%3B%20The%20accounts%20have%20been%20deleted%2C%20and%20managers%20are%20getting%20emails%20telling%20them%20that%20the%20OneDrives%20will%20be%20deleted.%26nbsp%3B%20But%20it%20appears%20from%20this%20report%20that%20the%20contents%20are%20still%20hanging%20around.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAs%20an%20admin%2C%20how%20can%20I%20confirm%20if%20a%20OneDrive%20folder%20is%20really%20there%20(and%20has%20contents)%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-686816%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOneDrive%20for%20Business%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EStorage%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-687406%22%20slang%3D%22en-US%22%3ERe%3A%20Are%20OneDrive%20folders%20really%20being%20deleted%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-687406%22%20slang%3D%22en-US%22%3E%3CP%3EUse%20SharePoint%20Online%20Powershell%3CBR%20%2F%3Econnect-sposervice%20%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftenant-admin.sharepoint.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ftenant-admin.sharepoint.com%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3Eset-spouser%20-identity%20%22url%20to%20the%20onedrive%22%20-loginname%20youraccount%20-issitecollectionadmin%20%24true%20%3CBR%20%2F%3E%3CBR%20%2F%3EPreservation%20policies%20can%20hold%20it%2C%20and%20or%20there%20is%20a%20setting%20in%20onedrive%20admin%20for%20number%20of%20days%20to%20keep%20onedrive%20data%20as%20well%2C%20check%20those%2C%20but%20there%20is%20something%20like%2091%20days%20give%20or%20take%20where%20those%20sites%20will%20hang%20around%20even%20after%20the%20site%20is%20removed%20from%20deleted%20users.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-688444%22%20slang%3D%22en-US%22%3ERe%3A%20Are%20OneDrive%20folders%20really%20being%20deleted%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-688444%22%20slang%3D%22en-US%22%3E%3CP%3EThat%20setting%20is%20configurable%20to%20up%20to%2010%20years%20actually%20%3A)%3C%2Fimg%3E%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fonedrive%2Fset-retention%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fonedrive%2Fset-retention%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-688483%22%20slang%3D%22en-US%22%3ERe%3A%20Are%20OneDrive%20folders%20really%20being%20deleted%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-688483%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F15390%22%20target%3D%22_blank%22%3E%40Lloyd%20Adams%3C%2FA%3E%26nbsp%3B-%20if%20the%20user%20is%20deleted%20from%20O365%2C%20the%20OneDrive%20folders%2Ffiles%20will%20be%20retained%20for%20the%20duration%20specified%20in%20OneDrive%20Admin%20%26gt%3B%20Storage%20parameter.%26nbsp%3B%20Default%20is%2030-days%2C%20but%20can%20be%20set%20for%20up%20to%203650%20days.%20So%20yes%2C%20the%20files%20can%20outlast%20the%20user%20in%20O365.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-689569%22%20slang%3D%22en-US%22%3ERe%3A%20Are%20OneDrive%20folders%20really%20being%20deleted%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-689569%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20still%20have%20default%20settings%2C%20and%20double%20checked%20that%20retain%20time%20is%20still%2030%20days.%26nbsp%3B%20As%20a%20manager%2C%20I%20get%2030%20and%207%20day%20warning%20emails.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELooking%20closer%20at%20the%20report%2C%20there%20is%20a%20Boolean%20field%20'Is%20Deleted'.%26nbsp%3B%20This%20seems%20to%20get%20set%20after%20the%2030%20day%20period.%26nbsp%3B%20I%20can%20no%20longer%20access%20any%20of%20the%20OneDrive%20urls%20where%20this%20flag%20is%20set.%26nbsp%3B%20If%20they%20are%20really%20deleted%2C%20why%20are%20they%20included%20in%20the%20report%2C%20and%20where%20is%20the%20information%20on%20number%20of%20files%2C%20storage%20used%20etc.%20coming%20from%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-691366%22%20slang%3D%22en-US%22%3ERe%3A%20Are%20OneDrive%20folders%20really%20being%20deleted%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-691366%22%20slang%3D%22en-US%22%3EThe%20OneDrive%20deleted%20after%20number%20of%20days%20configured%20in%20the%20OneDrive%20admin%20center%20will%20be%20retained%20in%20recycle%20bin.%20Microsoft%20retains%20the%20OneDrive%20in%20this%20recycle%20bin%20for%2093%20days%20and%20can%20be%20recovers%20using%20below%20power%20Set-SPOUser%20-Site%20https%3A%2F%2F%3CTENANT-ID%3E-my.sharepoint.com%2Fpersonal%2Ffirst_last_domain_com%20-LoginName%20first.last%40domain.com%20-IsSiteCollectionAdmin%20%24false%20-ErrorAction%20SilentlyContinue%3CBR%20%2F%3E%3C%2FTENANT-ID%3E%3C%2FLINGO-BODY%3E
Highlighted
Regular Contributor

I've just exported the OneDrive usage report, and I was very surprised to see it still listing OneDrive details for users who left a long time ago.  The accounts have been deleted, and managers are getting emails telling them that the OneDrives will be deleted.  But it appears from this report that the contents are still hanging around.

 

As an admin, how can I confirm if a OneDrive folder is really there (and has contents)?

5 Replies
Highlighted

Use SharePoint Online Powershell
connect-sposervice
https://tenant-admin.sharepoint.com

set-spouser -identity "url to the onedrive" -loginname youraccount -issitecollectionadmin $true

Preservation policies can hold it, and or there is a setting in onedrive admin for number of days to keep onedrive data as well, check those, but there is something like 91 days give or take where those sites will hang around even after the site is removed from deleted users.

Highlighted

That setting is configurable to up to 10 years actually :) https://docs.microsoft.com/en-us/onedrive/set-retention

Highlighted

@Lloyd Adams - if the user is deleted from O365, the OneDrive folders/files will be retained for the duration specified in OneDrive Admin > Storage parameter.  Default is 30-days, but can be set for up to 3650 days. So yes, the files can outlast the user in O365.

Highlighted

We still have default settings, and double checked that retain time is still 30 days.  As a manager, I get 30 and 7 day warning emails.

 

Looking closer at the report, there is a Boolean field 'Is Deleted'.  This seems to get set after the 30 day period.  I can no longer access any of the OneDrive urls where this flag is set.  If they are really deleted, why are they included in the report, and where is the information on number of files, storage used etc. coming from?

Highlighted
The OneDrive deleted after number of days configured in the OneDrive admin center will be retained in recycle bin. Microsoft retains the OneDrive in this recycle bin for 93 days and can be recovers using below power Set-SPOUser -Site https://<tenant-id>-my.sharepoint.com/personal/first_last_domain_com -LoginName first.last@domain.com -IsSiteCollectionAdmin $false -ErrorAction SilentlyContinue