Home

Cannot delete sharepoint after I delete a group

%3CLINGO-SUB%20id%3D%22lingo-sub-29516%22%20slang%3D%22en-US%22%3ECannot%20delete%20sharepoint%20after%20I%20delete%20a%20group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-29516%22%20slang%3D%22en-US%22%3E%3CP%3EI%20deleted%20a%20test%20group%20but%20the%20sharepoint%20site%20did%20not%20delete%20and%20I%20don't%20see%20in%20in%20the%20sharepoint%20admin%20center.%20It%20is%20hidden%20from%20my%20view.%20I%20tried%20deleting%20the%20site%20from%20within%20the%20site%20itself%20(settings%20menu%20--%26gt%3B%20site%20settings)%20but%20doing%20that%20just%20brings%20me%20back%20to%20the%20documents%20folder%20%3Asmileymad%3A%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-29516%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EGroups%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%20Groups%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-140118%22%20slang%3D%22en-US%22%3ERe%3A%20Cannot%20delete%20sharepoint%20after%20I%20delete%20a%20group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-140118%22%20slang%3D%22en-US%22%3E%3CP%3Eand%20it%20looks%20like%20sometimes%20OneNote%20too%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FOffice-365%2FDeleted-sharepoint-group-but-onenote-notebooks-are-stil-there%2Fm-p%2F140041%23M7509%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FOffice-365%2FDeleted-sharepoint-group-but-onenote-notebooks-are-stil-there%2Fm-p%2F140041%23M7509%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-101063%22%20slang%3D%22en-US%22%3ERe%3A%20Cannot%20delete%20sharepoint%20after%20I%20delete%20a%20group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-101063%22%20slang%3D%22en-US%22%3EAFAIK%2C%20No...the%20only%20once%20causing%20problems%20when%20deleting%20a%20Group%20seems%20to%20be%20SPO%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-100257%22%20slang%3D%22en-US%22%3ERe%3A%20Cannot%20delete%20sharepoint%20after%20I%20delete%20a%20group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-100257%22%20slang%3D%22en-US%22%3E%3CP%3EGreat%20guys%2C%20thank%20you%20for%20your%20help%20here.%20Any%20clue%26nbsp%3Babout%20other%20leftovers%20%3F%20Exchange%2C%20Teams...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3ETomas%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-67843%22%20slang%3D%22en-US%22%3ERe%3A%20Cannot%20delete%20sharepoint%20after%20I%20delete%20a%20group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-67843%22%20slang%3D%22en-US%22%3EMy%20pleasure%20Alvaro!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-67841%22%20slang%3D%22en-US%22%3ERe%3A%20Cannot%20delete%20sharepoint%20after%20I%20delete%20a%20group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-67841%22%20slang%3D%22en-US%22%3EMany%20thanks%20Juan%20Carlos%2C%20it%20works!!!%3CBR%20%2F%3EYou%20save%20my%20day.%3CBR%20%2F%3EGracias%20de%20nuevo.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-67812%22%20slang%3D%22en-US%22%3ERe%3A%20Cannot%20delete%20sharepoint%20after%20I%20delete%20a%20group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-67812%22%20slang%3D%22en-US%22%3EIf%20the%20suggestions%20described%20here%20don't%20work%2C%20I%20would%20recommend%20to%20use%20the%20cmdlets%20you%20can%20find%20in%20the%20preview%20of%20the%20PowerShell%20Module%20for%20Azure%20AD%20to%20completely%20remove%20the%20Group.%20I%20had%20to%20use%20them%20for%20a%20customer%20site%20group%20that%20was%20not%20deleted%20after%20deleting%20the%20Group...specifically%20follow%20this%20support%20article%3A%20%3CA%20href%3D%22https%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2FRestore-a-deleted-Office-365-Group-b7c66b59-657a-4e1a-8aa0-8163b1f4eb54%3Fui%3Den-US%26amp%3Brs%3Den-US%26amp%3Bad%3DUS%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2FRestore-a-deleted-Office-365-Group-b7c66b59-657a-4e1a-8aa0-8163b1f4eb54%3Fui%3Den-US%26amp%3Brs%3Den-US%26amp%3Bad%3DUS%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-67797%22%20slang%3D%22en-US%22%3ERe%3A%20Cannot%20delete%20sharepoint%20after%20I%20delete%20a%20group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-67797%22%20slang%3D%22en-US%22%3E%3CP%3EI%20did%20all%20these%20steps%20and%20it%20seems%20that%20it%20works.%3C%2FP%3E%3CP%3EThe%20thing%20is%20that%20when%20I%20try%20to%20create%20a%20group%20with%20the%20same%20name%2C%20the%20%22site%20name%22%20is%20like%20%22sitename2%22%3C%2FP%3E%3CP%3EI%20want%20to%20use%20the%20name%20without%20the%202%20at%20the%20end.%3C%2FP%3E%3CP%3EAny%20help%3F%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-58174%22%20slang%3D%22en-US%22%3ERe%3A%20Cannot%20delete%20sharepoint%20after%20I%20delete%20a%20group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-58174%22%20slang%3D%22en-US%22%3E%3CP%3EI%20also%20had%20the%20same%20problem.%20Deleted%20some%20Office%20365%20Groups%2C%20but%20the%20SharePoint%20sites%20were%20not%20deleted.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETrying%20to%20add%20my%20own%20global%20admin%20account%20as%20an%20owner%20using%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%20%3CYOUR%20global%3D%22%22%20admin%3D%22%22%20account%3D%22%22%3E%3C%2FYOUR%3E%3C%2FSITENAME%3E%3C%2FNAME%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Edid%20not%20work.%26nbsp%3B%20The%20site%20was%20%22not%20cuurently%20available%22%20according%20the%20Powershell%20error%20message.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EApperently%20the%20site%20was%20locked.%20Unlocking%20the%20site%20using%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-LockState%20Unlock%3C%2FSITENAME%3E%3C%2FNAME%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Emade%20it%20possible%20the%20add%20the%20global%20admin%20account.%20After%20adding%20the%20global%20admin%20account%20there%20was%20no%20problem%20deleting%20the%20SharePoint%20site.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20hope%20this%20works%20for%20everybody.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-57949%22%20slang%3D%22en-US%22%3ERe%3A%20Cannot%20delete%20sharepoint%20after%20I%20delete%20a%20group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-57949%22%20slang%3D%22en-US%22%3E%3CP%3EAre%20you%20talking%20about%20deleting%20a%20Group%20SPO%20Site%20%3F%26nbsp%3B%20(a%20SPO%20Site%20which%20was%20created%20via%20an%20O365%20Group)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20had%20(or%20still%20have)%20exactly%20the%20same%20case%20where%20a%20SPO%20Site%20remain%20available%20after%20i%20deleted%20the%20O365%20Group.%3C%2FP%3E%3CP%3EIn%20order%20to%20delete%20a%20SPO%2C%20you%20need%20to%20add%20an%20globald%20admin%20account%20as%20an%20owner%20to%20the%20site%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%20%3CYOUR%20global%3D%22%22%20admin%3D%22%22%20account%3D%22%22%3E%3C%2FYOUR%3E%3C%2FSITENAME%3E%3C%2FNAME%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eafterwards%20trigger%20the%20removal%20by%20issuing%20this%20cmdlet%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%3ESideNote%3A%3C%2FP%3E%3CP%3Ei%20had%20the%20issue%20that%20i%20couldn't%20add%20an%20owner%20to%20ANY%20Group%20SPO's.%20So%20i%20had%20to%20open%20a%20MS%20support%20ticket%20for%20that%20%3A(%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ehope%20that%20helps%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-57083%22%20slang%3D%22en-US%22%3ERe%3A%20Cannot%20delete%20sharepoint%20after%20I%20delete%20a%20group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-57083%22%20slang%3D%22en-US%22%3E%3CP%3Ethat%20site%20with%20the%20powershell%20scripts%20no%20longer%20exists.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20the%20same%20problem%20described%20above.%20%26nbsp%3BI%20deleted%20some%20groups%20but%20their%20sites%20still%20remain.%20%26nbsp%3BI%20tried%20to%20go%20in%20and%20delete%20the%20sistes%20from%20sharepoint%20admin%20but%20there%20is%20not%20option%20to%20delete%20them.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-29564%22%20slang%3D%22en-US%22%3ERe%3A%20Cannot%20delete%20sharepoint%20after%20I%20delete%20a%20group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-29564%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20can%20try%20using%20PowerShell%20to%20delete%20the%20site%20collection%2C%20%3CA%20href%3D%22http%3A%2F%2Fpowershell.office.com%2Fscenarios%2Fdelete-a-sharepoint-site-collection%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehere%20are%20the%20scripts%3C%2FA%3E.%20%26nbsp%3BA%20SharePoint%20site%20collection%20created%20by%20an%20Office%20365%20group%20currently%20will%20not%20show%20up%20in%20the%20SharePoint%20Online%20admin%20center.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-29525%22%20slang%3D%22en-US%22%3ERe%3A%20Cannot%20delete%20sharepoint%20after%20I%20delete%20a%20group%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-29525%22%20slang%3D%22en-US%22%3EThe%20Group%20site%20should%20be%20deleted%20when%20the%20Group%20is%20deleted...if%20that's%20not%20the%20case%2C%20to%20avoid%20the%20redirection%2C%20append%20to%20the%20Url%20%3Fnoredirect%3Dtrue%3C%2FLINGO-BODY%3E
Frequent Contributor

I deleted a test group but the sharepoint site did not delete and I don't see in in the sharepoint admin center. It is hidden from my view. I tried deleting the site from within the site itself (settings menu --> site settings) but doing that just brings me back to the documents folder :smileymad:

12 Replies
The Group site should be deleted when the Group is deleted...if that's not the case, to avoid the redirection, append to the Url ?noredirect=true

You can try using PowerShell to delete the site collection, here are the scripts.  A SharePoint site collection created by an Office 365 group currently will not show up in the SharePoint Online admin center. 

that site with the powershell scripts no longer exists.

 

I have the same problem described above.  I deleted some groups but their sites still remain.  I tried to go in and delete the sistes from sharepoint admin but there is not option to delete them.

Are you talking about deleting a Group SPO Site ?  (a SPO Site which was created via an O365 Group)

 

I had (or still have) exactly the same case where a SPO Site remain available after i deleted the O365 Group.

In order to delete a SPO, you need to add an globald admin account as an owner to the site

 

Set-SPOSite -Identity https://<name>/sites/<sitename> -owner <your global admin account>

 

afterwards trigger the removal by issuing this cmdlet

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

 

SideNote:

i had the issue that i couldn't add an owner to ANY Group SPO's. So i had to open a MS support ticket for that :(

 

hope that helps

I also had the same problem. Deleted some Office 365 Groups, but the SharePoint sites were not deleted.

 

Trying to add my own global admin account as an owner using

 

Set-SPOSite -Identity https://<name>/sites/<sitename> -owner <your global admin account>

 

did not work.  The site was "not cuurently available" according the Powershell error message.

 

Apperently the site was locked. Unlocking the site using

 

Set-SPOSite -Identity https://<name>/sites/<sitename> -LockState Unlock

 

made it possible the add the global admin account. After adding the global admin account there was no problem deleting the SharePoint site.

 

I hope this works for everybody.

I did all these steps and it seems that it works.

The thing is that when I try to create a group with the same name, the "site name" is like "sitename2"

I want to use the name without the 2 at the end.

Any help?

Thanks

If the suggestions described here don't work, I would recommend to use the cmdlets you can find in the preview of the PowerShell Module for Azure AD to completely remove the Group. I had to use them for a customer site group that was not deleted after deleting the Group...specifically follow this support article: https://support.office.com/en-us/article/Restore-a-deleted-Office-365-Group-b7c66b59-657a-4e1a-8aa0-...
Many thanks Juan Carlos, it works!!!
You save my day.
Gracias de nuevo.
My pleasure Alvaro!

Great guys, thank you for your help here. Any clue about other leftovers ? Exchange, Teams...

 

Thanks

Tomas

AFAIK, No...the only once causing problems when deleting a Group seems to be SPO