Thanks to https://blog.jussipalo.com/2018/08/cannot-delete-azure-active-directory.html I was able to delete all enterprise applications. But still I am not able to delete the directory/tenant...
Delete of tenant not possible
Hi,
I want to delete a free azure ad tenant. But I am not able to delete it.
It tells me to delete all company applications.
Once I go to delete all company applications, there are only applications from Microsoft,
which I cannot delete.
Do you have any idea what to do? I just want to delete my mandant and my whole account. Thanks in advance.
1 additional answer
Sort by: Most helpful
-
Anshika Choubey 336 Reputation points Microsoft Employee
2021-01-22T05:31:53.57+00:00 Hello @ADDeletes
Thank you for your post! We had a similar issue not to long ago, I'll post the solution below.
Troubleshooting Steps:
To solve the Enterprise Applications blockage during a tenant deletion attempt:
On your windows desktop search, Open PowerShell ISE as Administrator
Install the needed module, type at promt: Install-Module MSOnline
Then: Connect-msolservice
Input a global admin’s credentials for your azure tenant. (eg. User: admin@[organization].onMicrosoft.com + password)
If we have any output please run the following command at the prompt: Get-msolserviceprincipal | remove-msolserviceprincipal (Note you will see a lot of red output on this command, these are applications that cannot be deleted from the tenant, but will not stop you from doing so.)
Log in back to the Azure tenant, and try one more time to delete it.
Enterprise Application should now have a green check mark and you should be able to delete your tenant
If you have any other questions or are still running into issue after following these steps, please let me know.
Thank you for your time and patience throughout this issue.Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution