Delete an Office 365 group immediately (not have to wait 30 days)

Hey there,

I was messing with Office 365 groups and created some test groups. I want them gone, but whenever I delete them I have to wait 30 days for it to actually  be gone.

I found this:

https://answers.microsoft.com/en-us/msoffice/forum/msoffice_o365admin-mso_password-mso_o365b/how-to-remove-a-group-in-office-365-without/2808a24b-fbc1-490a-94bf-5e12c8fb7dfb

It ended up not working. It still deletes the group, but still has the 30 day retention. 

Does anyone know how I can delete a 365 group right now without waiting 30 days.

Thanks for any help that can be provided,

Joey 

Answer
Answer

Once the O365 group is removed, you can use the Remove-AzureADMSDeletedDirectoryObject cmdlet to "purge". So, first do a:

 Get-AzureADMSGroup -Id 3548d86c-d0e2-4541-91d7-c06e8****2dd | Remove-AzureADMSGroup

then to clean up:

Remove-AzureADMSDeletedDirectoryObject -Id 3548d86c-d0e2-4541-91d7-c06e8****2dd

3 people found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated February 7, 2024 Views 9,788 Applies to: