SOLVED

How to delete Group SPO site if O365Group was deleted?

%3CLINGO-SUB%20id%3D%22lingo-sub-55406%22%20slang%3D%22en-US%22%3EHow%20to%20delete%20Group%20SPO%20site%20if%20O365Group%20was%20deleted%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-55406%22%20slang%3D%22en-US%22%3E%3CP%3Eusually%20if%20you%20delete%20an%20O365Goup%2C%20the%20process%20will%2Fshould%20delete%20the%20Group%20SPO%20Site%2C%20Group%20Mailbox%2C%20...%3C%2FP%3E%3CP%3E..in%20my%20case%20the%20GRoup%20SPO%20Site%20remains%20%3A(%3C%2Fimg%3E%26nbsp%3B%20(opened%20already%20a%20support%20ticket)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ei%20just%20want%20to%20raise%20one%20generic%20question%20here%3A%3C%2FP%3E%3CP%3EWhat%20is%20usually%20the%20process%20to%20delete%20an%20orphaned%20Group%20SPO%20Site%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERemove-SPOSite%20does%20not%20work%20because%20the%20global%20admin%20is%2Fwas%20NOT%20part%20of%20the%20owner%20of%20the%20Site%3C%2FP%3E%3CP%3ESet-SPOSite%20to%20change%20the%20owner%20does%20also%20not%20work%20because%20it%20is%20a%20GRoup%20SPO%20--%26gt%3B%20owner%20and%20members%20are%20usually%20coming%20via%20the%20O365Group.....but%20the%20Group%20is%20gone%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Emaybe%20i'm%20misunderstanding%20something%20here%20%3A(%3C%2Fimg%3E%3C%2FP%3E%3CP%3Ethank%20you%3C%2FP%3E%3CP%3Estefan%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-55406%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-204279%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20delete%20Group%20SPO%20site%20if%20O365Group%20was%20deleted%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-204279%22%20slang%3D%22en-US%22%3EI%20would%20recommend%20asking%20these%20questions%20in%20a%20new%20conversation%20thread%20so%20that%20you%20get%20the%20most%20attention.%3CBR%20%2F%3EIn%20regards%20to%20question%201%2C%20When%20you%20delete%20an%20Office%20Group%2C%20it%20will%20delete%20the%20associated%20objects%2C%20such%20as%20SPO%20sites%2C%20that%20is%20the%20correct%20method%20to%20ensure%20everything%20gets%20properly%20removed.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-204120%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20delete%20Group%20SPO%20site%20if%20O365Group%20was%20deleted%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-204120%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI'm%26nbsp%3Bcurrently%20experiencing%20many%20issues%20with%20SharePoint%20Online%20site%20collections.%20I%20have%26nbsp%3Baround%2080%20sites%20that%20been%20created%20but%20unused%2C%20so%20I%20want%20to%20delete%20them%20however%20I%20could%20not%20remove%20any%20of%20them.%3C%2FP%3E%3CP%3EI'm%20new%20to%20SP%20online%20and%20not%20sure%20what%20to%20do%20next%20to%20move%20on%20to%20next%20step.%20below%20are%20the%20error%20messages%20i'm%20getting.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20trying%20to%20update%26nbsp%3Bthe%20Group%20Site%20I%20got%20this%20error%20message%20%22The%20login%20name%20xxxxxx%40xxxx.onmicrosoft.com%20was%20not%20found%20in%20the%20tenant.%22%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20using%20%22%3CSPAN%3ERemove-SPOSite%20-Identity%20https%3A%2F%2F%3CNAME%3E%2Fsites%2F%3CSITENAME%3E%20-noWait%22%20I%20have%20the%20following%20errors%20for%20different%20sites%3C%2FSITENAME%3E%3C%2FNAME%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E1.%20Remove-SPOSite%20%3A%20This%20site%20belongs%20to%20an%20Office%20365%20group.%20To%20delete%20the%20site%2C%20you%20must%20delete%20the%20group.%20%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E(I'm%20afraid%20if%20I%20delete%20the%20O365%20group%2C%20the%20site%20retained%20as%20I've%20tried%20this%20from%20the%20Web%20browser%20by%20going%20to%20Site%20Information%20-%26gt%3B%20Delete%20this%20site%20-%26gt%3B%20Confirm%20deletion%20of%20O365)%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EOnce%20the%20group%20deleted%2C%20this%20is%20the%20error%20that%20I%20received.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E2.%26nbsp%3BRemove-SPOSite%20%3A%20This%20site%20collection%20can't%20be%20deleted%20because%20it%20contains%20sites%20that%20are%20included%20in%20an%20eDiscovery%26nbsp%3Bhold%20or%20retention%20policy%3C%2FSTRONG%3E.%3C%2FP%3E%3CP%3EI%20check%20all%20the%20retention%20policy%20in%20Admin%20Central%2C%20SharePoint%20option%20is%20not%20even%20turn%20on.%26nbsp%3B%20However%20I%20do%20have%20the%20%22Preservation%20Hold%20Library%22%20folder%20appears%20on%20my%20site.%20I%20then%20use%20SharePoint%20designer%20to%20update%20the%26nbsp%3BtemHoldReleasedDate%20to%20a%20past%20date%20and%20try%20the%20Remove%20cmd%20again%20I%20got%20this%20error%20message.%3C%2FP%3E%3CP%3E%3CSTRONG%3E3.%20Remove-SPOSite%20%3A%20The%20requested%20operation%20is%20not%20supported%20for%20site%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20already%20have%20a%20ticket%20with%20MS%2C%20we%20went%20through%20many%20different%20test%20but%26nbsp%3Bno%20luck.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20suggestions%20would%20be%20greatly%20appreciated!!!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-128964%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20delete%20Group%20SPO%20site%20if%20O365Group%20was%20deleted%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-128964%22%20slang%3D%22en-US%22%3E%3CP%3Eit%20is%20great%20to%20have%20workarounds%20%2C%20but%20it%20is%20unbelievable%20that%20this%20issue%20(SPO%20teamsites%20are%20not%20deleted%20whenever%20O365%20groups%20are%20deleted)%20still%20exists%20after%20months.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-128435%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20delete%20Group%20SPO%20site%20if%20O365Group%20was%20deleted%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-128435%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Shivam%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20a%20lot%2C%20this%20worked%20perfect%20for%20me.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-128353%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20delete%20Group%20SPO%20site%20if%20O365Group%20was%20deleted%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-128353%22%20slang%3D%22en-US%22%3Eokay..%20So%20first%20you%20will%20have%20to%20unlock%20that%20site.%20For%20that%20you%20need%20to%20do%20this%20%3A%20Set-SPOSite%20-identity%20siteurl%20-LockState%20%22unlock%22%3CBR%20%2F%3EAnd%20then%20assign%20that%20account%20as%20owner%2C%20one%20you%20are%20going%20to%20delete%20it%20with%20using%20%3A%20Set-SPOSite%20-identity%20siteurl%20-Owner%20%3CACCOUNT%3E%20-nowait%3CBR%20%2F%3ENow%20you%20can%20do%20the%20above%20steps%20to%20remove%20that%20site%20permanently%3C%2FACCOUNT%3E%3CLINGO-SUB%20id%3D%22lingo-sub-128299%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20delete%20Group%20SPO%20site%20if%20O365Group%20was%20deleted%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-128299%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20exactly%20the%20same%20issue.%20I%20have%20a%20few%20Orphaned%20Group%20Sites%2C%20but%20in%20my%20case%20the%20set%2Fadd%20of%20an%20owner%20with%20the%20%22Set-SPOSite%20-Identity%22%20cmd%20results%20in%20%22Unable%20to%20change%20Owner%20property%20when%20site%20is%20in%20LockState%20or%20No%20Access%22%20(translated%20from%20Dutch).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDoes%20anyone%20has%20any%20idea%20how%20to%20get%20this%20solved%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-98247%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20delete%20Group%20SPO%20site%20if%20O365Group%20was%20deleted%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-98247%22%20slang%3D%22en-US%22%3E%3CP%3Ehi%20all%3C%2FP%3E%3CP%3Ei%20had%20the%20same%20issue%20%3A%20deleted%20the%20group%20and%20the%20site%20got%20orphaned.%20So%20what%20i%20did%20is%20first%20I%20removed%20the%20site%20permanently%20using%20Remove-SPOSite%20and%20then%20Remove-SPODeletedSite.%20And%20then%20I%20removed%20the%20group%20and%20voila!!!%20there%20were%20no%20issues.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-57850%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20delete%20Group%20SPO%20site%20if%20O365Group%20was%20deleted%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-57850%22%20slang%3D%22en-US%22%3EYes%2C%20that%20is%20what%20I%20meant.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20remember%20having%20this%20type%20of%20problem%20when%20O365%20groups%20were%20first%20available%20and%20I%20had%20to%20call%20MS%20Support%20but%20I%20have%20not%20looked%20for%20this%20in%20any%20of%20my%20current%20customers.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-57822%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20delete%20Group%20SPO%20site%20if%20O365Group%20was%20deleted%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-57822%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20Dean%3C%2FP%3E%3CP%3Eu%20mean%20to%20set%2Fadd%20an%20owner%20to%20the%20orphaned%20Group%20Site%20and%20to%20delete%20it%20afterwards%2Cright%20(or%20do%20you%20mean%20a%20different%20approach)%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESet-SPOSite%20-Identity%20https%3A%2F%2F%3CNAME%3E%2Fsites%2F%3CSITENAME%3E%20-owner%20xxxxxxx%40xxxxx.onmicrosoft.com%3C%2FSITENAME%3E%3C%2FNAME%3E%3C%2FP%3E%3CP%3ERemove-SPOSite%20-Identity%20https%3A%2F%2F%3CNAME%3E%2Fsites%2F%3CSITENAME%3E%20-noWait%3C%2FSITENAME%3E%3C%2FNAME%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENOW%2C%20this%20works%20but%20this%20didn't%20work%20last%20time%20because%20i%20got%20the%20message%20saying%20that%20i%20can't%20change%20the%20Owner%20of%20a%20GroupSite%20(using%20the%20-owner%20parameter%20was%20not%20allowed%20for%20managing%20a%20Group%20Site)%3C%2FP%3E%3CP%3EIt%20seems%20that%20MS%20changed%20something%20now.%3C%2FP%3E%3CP%3EAt%20least%20i%20can%20delete%20them%20know%20%22manually%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDo%20you%20see%20in%20your%20environment%20orphaned%20GROUP%20SPO's%20or%20am%20i%20the%20only%20one%20%3F%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-57810%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20delete%20Group%20SPO%20site%20if%20O365Group%20was%20deleted%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-57810%22%20slang%3D%22en-US%22%3EGlobal%20admins%20don't%20have%20access%20to%20SPO%20site%20collections%20by%20default%20which%20may%20be%20causing%20this%20issue.%3CBR%20%2F%3E%3CBR%20%2F%3EHave%20you%20tried%20to%20add%20an%20account%20to%20the%20Site%20Collection%20Admin%20group%20of%20the%20site%20and%20then%20use%20that%20account%20to%20run%20Remove-SPOsite%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-57807%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20delete%20Group%20SPO%20site%20if%20O365Group%20was%20deleted%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-57807%22%20slang%3D%22en-US%22%3E%3CP%3Equick%20update%3A%3C%2FP%3E%3CP%3Ei%20still%20have%20plenty%20of%20orphaned%20group%20spo%20sites%20which%20i%20can't%20delete%20as%20Global%20Admin%3C%2FP%3E%3CP%3E(Access%20denied%20message%20if%20i%20use%20Remove-SPOSite%20cmdlet)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMS%20support%20deleted%20%22manually%22%20some%20of%20my%20orphaned%20group%20sites...and%20closed%20the%20ticket%20(a%20root%20cause%20analysis%20is%20not%20covered%20with%20the%20normal%20support%20%3A(((%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20i'm%20still%20facing%20the%20issue%20that%20if%20i%20delete%20a%20O365Group%2C%20the%20underlying%20SPO%20Group%20Site%20remains%20(as%20well%20the%20MS%20Team%20in%20case%20the%20O365%20group%20was%20created%20via%20Teams).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESupport%20told%20me%20that%20Remove-SPOSite%20should%20work%20but%20in%20fact%20it%20doesn't.%3C%2FP%3E%3CP%3EDoes%20anyone%20have%20other%20ideas%20how%20i%20can%20delete%20orphaned%20Group%20Spo's%20without%20contacting%20MS%20Support%20%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-56083%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20delete%20Group%20SPO%20site%20if%20O365Group%20was%20deleted%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-56083%22%20slang%3D%22en-US%22%3E%3CP%3EYes.%20I%20tried%20to%20remove%20it%20via%20Remove-SPOSite....but%20it%20gives%20me%20'%22Access%20Denied%22%20although%20i'm%20Global%20Admin%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20my%20tenant%20i%20see%20dozens%20of%20orphaned%20SPO%20Sites%20%3A(%3C%2Fimg%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EI%20opened%20already%20a%20Support%20Ticket.%20Will%20let%20you%20know%20the%20outcome%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-56001%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20delete%20Group%20SPO%20site%20if%20O365Group%20was%20deleted%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-56001%22%20slang%3D%22en-US%22%3E%3CP%3EI%20personally%20have%20not%20tried%20to%20delete%20recently%20in%20any%20means.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-55983%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20delete%20Group%20SPO%20site%20if%20O365Group%20was%20deleted%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-55983%22%20slang%3D%22en-US%22%3EYeap%2C%20I%20remember%20also%20from%20time%20to%20time%20this%20issue%20of%20having%20orphan%20group%20sites%20that%20are%20not%20deleted...have%20you%20tried%20to%20remove%20it%20using%20PowerShell%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-55429%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20delete%20Group%20SPO%20site%20if%20O365Group%20was%20deleted%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-55429%22%20slang%3D%22en-US%22%3EI%20am%20pretty%20sure%20I%20reported%20this%204%20months%20ago%2C%20it%20may%20even%20be%20when%20we%20were%20on%20Yammer%20still%20not%20on%20MS%20Tech%20Community.%20I%20do%20not%20remember%20an%20update%20on%20the%20delete%20feature%20since%20then.....%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-55422%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20delete%20Group%20SPO%20site%20if%20O365Group%20was%20deleted%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-55422%22%20slang%3D%22en-US%22%3E%3CP%3EYes.%20Around%2030%20hours%20ago%20i%20have%20deleted%20the%20O365Group%20but%20the%20SPO%20Site%20still%20exists.%3C%2FP%3E%3CP%3E..so%20i%20would%20say%20that%20i%20have%20waited%20long%20enough%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYes%20i've%20checked%20first%20some%20of%20the%20existing%20community%20entries%20(like%20the%20one%20you%20have%20mentioned%20below)%20but%20all%20of%20the%20%22workarounds%22%20(example%3A%20%2F_layouts%2F15%2Fdeleteweb.aspx)%26nbsp%3B%20have%20not%20helped%20%3A(%3C%2Fimg%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ei'm%20just%20curious%20what%20others%20usually%20do%20in%20that%20case%20(spo%20site%20not%20deleted%20automatically%20and%20global%20admin%20can%20not%20delete%20it%20manually%20because%20of%20the%20missing%20ownership)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethx%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-55418%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20delete%20Group%20SPO%20site%20if%20O365Group%20was%20deleted%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-55418%22%20slang%3D%22en-US%22%3E%3CP%3EHave%20you%20waited%20some%20hours%20for%20the%20cleanup%20process%20to%20complete%3F%20The%20SPO%20site%20should%20be%20automatically%20deleted%20after%20the%20deletion%20of%20the%20associated%20Group%2C%20but%20the%20process%20could%20be%20rather%20slow%20to%20complete.%3C%2FP%3E%3CP%3EAnyway%2C%20we%20have%20already%20discussed%20many%20times%20the%20issue...%20For%20example%20give%20a%20look%20to%20this%20thread%3A%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FOffice-365-Groups%2FForce-delete-Group-Site-Collection-after-Group-Deleted%2Fm-p%2F30853%23M1352%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FOffice-365-Groups%2FForce-delete-Group-Site-Collection-after-Group-Deleted%2Fm-p%2F30853%23M1352%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-485655%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20delete%20Group%20SPO%20site%20if%20O365Group%20was%20deleted%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-485655%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1096%22%20target%3D%22_blank%22%3E%40Dean%20Gross%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EJust%20went%20to%20the%20same%20issue.%20You%20need%20to%20delete%20the%20Office%20365%20groups%20in%20two%20places.%20If%20you%20delete%20online%20in%20the%20Admin%20Center-%26gt%3BGroups%2C%20you%20still%20need%20to%20go%20inside%20Portal%20Azure%20and%20permanent%20delete%20the%20Groups%20there.%20Portal%20Azure%20-%26gt%3BAzure%26nbsp%3B%20Active%20Directory%20-%26gt%3B%20Groups%20-%26gt%3B%20Deleted%20Groups%20-%26gt%3B%20Send%20them%20to%20SPACE%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20give%20a%20day%20or%20two%20and%20the%20sites%20will%20be%20deleted.%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20whole%20issue%20has%20nothing%20to%20do%20with%20ediscovery%20policies..%20crazy!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-485971%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20delete%20Group%20SPO%20site%20if%20O365Group%20was%20deleted%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-485971%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F210596%22%20target%3D%22_blank%22%3E%40Julio%20Lima%3C%2FA%3Ethat%20is%20not%20correct.%20You%20do%20not%20need%20to%20do%20that%20in%20the%20Azure%20AD%20portal%2C%20the%20system%20will%20do%20it%20for%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-486076%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20delete%20Group%20SPO%20site%20if%20O365Group%20was%20deleted%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-486076%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1096%22%20target%3D%22_blank%22%3E%40Dean%20Gross%3C%2FA%3E%26nbsp%3B%20Hi%20Dean%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt's%20if%20you%20facing%20the%20issue%20of%20deleting%20a%20site%20and%20you%20get%20the%20message%20you%20can't%20delete%20because%20of%20compliance%20or%20e-discovery.%20I%20closed%20a%20call%20yesterday%20with%20Microsoft%20Premier%20support%2C%20this%20thing%20got%20escalated%20there%20because%20the%20test%20and%20trash%20team%20sites%20we%20deleted%20never%20deleted%20the%20sharepoint.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESteps%20Microsoft%20suggest%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1.%20Check%20policies%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EGet-RetentionCompliancePolicy%20%7CFL%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EGet-RetentionCompliancePolicy%20%22PolicyName%22%20-DistribuitionDetails%20%7C%20FL%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EThe%20only%20policy%20I%20had%20was%20off%2C%20then%20deleted%2C%20the%20problem%20still%20persisted%20after%20waiting%207%20days%20as%20said%20by%20Microsoft%20-%20it%20can%20take%20up%20to%207%20days%20to%20replicate%20policy%20actions.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E2.%26nbsp%3B%20Microsoft%20asked%20to%20delete%20the%20Office365%20in%20the%20Admin%20Center-%26gt%3BGroups.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20did%20that%20only%20from%20Portal%20Admin%2C%20I%20still%20could%20not%20delete%20the%20site%20from%20SharePoint%20Active%20Sites.%20I%20got%20the%20error%20compliance%20policy%20blocking%20you%20from%20doing%20that.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E3.%20Microsoft%20asked%20delete%20via%20Powershell.%26nbsp%3B%3CSPAN%3ERemove-SPOSite%20%E2%80%93identity%20URL.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3ETried%20that%20I%20got%20the%20error%20saying%20cant%20delete%20because%20of%20ediscovery%20policy%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E4.%20Microsoft%20did%20a%20team%20meeting%2C%20ask%20to%20go%20thru%20the%20steps%2C%20and%20the%20guru%20said%2C%20go%20to%20Azure%20AD%20-%26gt%3B%20Groups-%26gt%3BDeleted%20Group%20-%26gt%3B%20Purge%20them.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EThat%20worked%20really%20well%2C%20this%20was%20yesterday...%20I%20permanently%20deleted%20the%20Office%20Groups%20all%20the%20sites%20deleted%20automatically.%20Went%20to%20Active%20Sites%20in%20SharePoint%20Admin%2C%20all%20clean.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3ERegards%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-782849%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20delete%20Group%20SPO%20site%20if%20O365Group%20was%20deleted%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-782849%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20tried%20ALL%20these%20options%20and%20not%20one%20has%20worked.%20Perhaps%20this%20is%20a%20time%20period%20to%20take%20effect%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F125200iCACDB33D1C96AF1B%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_0.png%22%20title%3D%22clipboard_image_0.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EAs%20you%20can%20see%20the%20Retention%20Policy%20no%20longer%20applied%20to%20SharePoint.%20Originally%20they%20were%20setup%20as%20Team%20sites%20that%20were%20deleted.%20Still%20lingering%20around%20as%20a%20SharePoint%20Site.%20I%20removed%20SharePoint%20Retention%20around%20a%20few%20hours%20ago.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-792234%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20delete%20Group%20SPO%20site%20if%20O365Group%20was%20deleted%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-792234%22%20slang%3D%22en-US%22%3E%3CP%3EI%20know%20this%20thread%20might%20a%20bit%20old%2C%20however%20for%20me%20I%20had%20to%20go%20into%20deleted%20sites%20in%20SharePoint%20Admin.%20Restore%20the%20site%2C%20that%20in%20turn%20restored%20the%20site%20all%20the%20other%20365%20group%20stuff.%3C%2FP%3E%3CP%3EThen%20delete%20the%20site%20in%20SharePoint%20Admin%20%3CSTRONG%3Enot%3C%2FSTRONG%3Evia%20the%20365%20groups%20admin.microsoft.com%3C%2FP%3E%3CP%3EThen%20once%20it%20was%20deleted%20in%20SharePoint%20admin%20I%20could%20then%20select%20it%20from%20%22deleted%20sites%22%20and%20then%20click%20Permanently%20delete.%3C%2FP%3E%3CP%3EOnly%20then%20did%20everything%20remove.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-794028%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20delete%20Group%20SPO%20site%20if%20O365Group%20was%20deleted%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-794028%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F142398%22%20target%3D%22_blank%22%3E%40Scott%20Christian%3C%2FA%3Ei%20find%20it%20really%20strange%20that%20these%20issues%20still%20occur.%20i%20really%20thought%20that%20MS%20has%20solved%20this%20already%20but%20it%20looks%20like%20that%20this%20is%20not%20the%20case.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ei%20may%20know%20a%20reason%20why%20there%20is%20less%20interest%20in%20solving%20this...but%20anyway%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Super Contributor

usually if you delete an O365Goup, the process will/should delete the Group SPO Site, Group Mailbox, ...

..in my case the GRoup SPO Site remains :(  (opened already a support ticket)

 

i just want to raise one generic question here:

What is usually the process to delete an orphaned Group SPO Site ?

 

Remove-SPOSite does not work because the global admin is/was NOT part of the owner of the Site

Set-SPOSite to change the owner does also not work because it is a GRoup SPO --> owner and members are usually coming via the O365Group.....but the Group is gone

 

maybe i'm misunderstanding something here :(

thank you

stefan

23 Replies
Highlighted

Have you waited some hours for the cleanup process to complete? The SPO site should be automatically deleted after the deletion of the associated Group, but the process could be rather slow to complete.

Anyway, we have already discussed many times the issue... For example give a look to this thread: https://techcommunity.microsoft.com/t5/Office-365-Groups/Force-delete-Group-Site-Collection-after-Gr...

Highlighted

Yes. Around 30 hours ago i have deleted the O365Group but the SPO Site still exists.

..so i would say that i have waited long enough :)

 

Yes i've checked first some of the existing community entries (like the one you have mentioned below) but all of the "workarounds" (example: /_layouts/15/deleteweb.aspx)  have not helped :(

 

i'm just curious what others usually do in that case (spo site not deleted automatically and global admin can not delete it manually because of the missing ownership)

 

thx

Highlighted
I am pretty sure I reported this 4 months ago, it may even be when we were on Yammer still not on MS Tech Community. I do not remember an update on the delete feature since then.....
Highlighted
Yeap, I remember also from time to time this issue of having orphan group sites that are not deleted...have you tried to remove it using PowerShell
Highlighted

I personally have not tried to delete recently in any means.

Highlighted

Yes. I tried to remove it via Remove-SPOSite....but it gives me '"Access Denied" although i'm Global Admin :)

 

In my tenant i see dozens of orphaned SPO Sites :(


I opened already a Support Ticket. Will let you know the outcome

Highlighted

quick update:

i still have plenty of orphaned group spo sites which i can't delete as Global Admin

(Access denied message if i use Remove-SPOSite cmdlet)

 

MS support deleted "manually" some of my orphaned group sites...and closed the ticket (a root cause analysis is not covered with the normal support :(((

 

So i'm still facing the issue that if i delete a O365Group, the underlying SPO Group Site remains (as well the MS Team in case the O365 group was created via Teams).

 

Support told me that Remove-SPOSite should work but in fact it doesn't.

Does anyone have other ideas how i can delete orphaned Group Spo's without contacting MS Support ?

Highlighted
Global admins don't have access to SPO site collections by default which may be causing this issue.

Have you tried to add an account to the Site Collection Admin group of the site and then use that account to run Remove-SPOsite?
Highlighted
Best Response confirmed by Stefan Fried (Super Contributor)
Solution

Hello Dean

u mean to set/add an owner to the orphaned Group Site and to delete it afterwards,right (or do you mean a different approach) ?

 

Set-SPOSite -Identity https://<name>/sites/<sitename> -owner xxxxxxx@xxxxx.onmicrosoft.com

Remove-SPOSite -Identity https://<name>/sites/<sitename> -noWait

 

NOW, this works but this didn't work last time because i got the message saying that i can't change the Owner of a GroupSite (using the -owner parameter was not allowed for managing a Group Site)

It seems that MS changed something now.

At least i can delete them know "manually"

 

Do you see in your environment orphaned GROUP SPO's or am i the only one ? :)

 

 

Highlighted
Yes, that is what I meant.

I remember having this type of problem when O365 groups were first available and I had to call MS Support but I have not looked for this in any of my current customers.
Highlighted

hi all

i had the same issue : deleted the group and the site got orphaned. So what i did is first I removed the site permanently using Remove-SPOSite and then Remove-SPODeletedSite. And then I removed the group and voila!!! there were no issues.

Highlighted

Hi all,

 

I have exactly the same issue. I have a few Orphaned Group Sites, but in my case the set/add of an owner with the "Set-SPOSite -Identity" cmd results in "Unable to change Owner property when site is in LockState or No Access" (translated from Dutch).

 

Does anyone has any idea how to get this solved?

Highlighted
okay.. So first you will have to unlock that site. For that you need to do this : Set-SPOSite -identity siteurl -LockState "unlock"
And then assign that account as owner, one you are going to delete it with using : Set-SPOSite -identity siteurl -Owner <account> -nowait
Now you can do the above steps to remove that site permanently
Highlighted

Hi Shivam,

 

Thanks a lot, this worked perfect for me.

Highlighted

it is great to have workarounds , but it is unbelievable that this issue (SPO teamsites are not deleted whenever O365 groups are deleted) still exists after months.

 

 

 

 

 

Highlighted

Hi,

I'm currently experiencing many issues with SharePoint Online site collections. I have around 80 sites that been created but unused, so I want to delete them however I could not remove any of them.

I'm new to SP online and not sure what to do next to move on to next step. below are the error messages i'm getting.

 

When trying to update the Group Site I got this error message "The login name xxxxxx@xxxx.onmicrosoft.com was not found in the tenant." 

 

When using "Remove-SPOSite -Identity https://<name>/sites/<sitename> -noWait" I have the following errors for different sites

1. Remove-SPOSite : This site belongs to an Office 365 group. To delete the site, you must delete the group.

(I'm afraid if I delete the O365 group, the site retained as I've tried this from the Web browser by going to Site Information -> Delete this site -> Confirm deletion of O365)

Once the group deleted, this is the error that I received.

2. Remove-SPOSite : This site collection can't be deleted because it contains sites that are included in an eDiscovery hold or retention policy.

I check all the retention policy in Admin Central, SharePoint option is not even turn on.  However I do have the "Preservation Hold Library" folder appears on my site. I then use SharePoint designer to update the temHoldReleasedDate to a past date and try the Remove cmd again I got this error message.

3. Remove-SPOSite : The requested operation is not supported for site:

 

I already have a ticket with MS, we went through many different test but no luck. 

 

Any suggestions would be greatly appreciated!!!

 

Highlighted
I would recommend asking these questions in a new conversation thread so that you get the most attention.
In regards to question 1, When you delete an Office Group, it will delete the associated objects, such as SPO sites, that is the correct method to ensure everything gets properly removed.
Highlighted

@Dean Gross 

Just went to the same issue. You need to delete the Office 365 groups in two places. If you delete online in the Admin Center->Groups, you still need to go inside Portal Azure and permanent delete the Groups there. Portal Azure ->Azure  Active Directory -> Groups -> Deleted Groups -> Send them to SPACE :)

 

You give a day or two and the sites will be deleted. :)

 

This whole issue has nothing to do with ediscovery policies.. crazy!

Highlighted

@Julio Limathat is not correct. You do not need to do that in the Azure AD portal, the system will do it for you.