Delete a Tenant

ASKO Admin 21 Reputation points
2021-01-15T14:43:31.71+00:00

I am trying to delete a tenant. i get the check to see if the tenant can be deleted. the only warning is to delete enterprise applications. when i view the enterprise applications, the only remaining applications are Microsoft First run (or whatever they are called) applications, and i can't delete them. how am i supposed to get past this to delete a tenant?

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

Accepted answer
  1. JamesTran-MSFT 36,911 Reputation points Microsoft Employee Moderator
    2021-01-15T17:11:00.877+00:00

    @ASKO Admin
    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.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Vasil Michev 119.6K Reputation points MVP Volunteer Moderator
    2021-01-15T16:39:20.76+00:00

    Those apps should not be the problem, but check if you have anything listed under the App Registrations blade (both tabs).

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.