Cannot delete azure directory/tenant on personal account due to Error code: AADSTS5000225

Jake Hoffman 0 Reputation points
2025-10-25T19:15:51.5433333+00:00

Hello, I have a similar problem to that listed in https://free.blessedness.top/en-us/answers/questions/5550068/cannot-close-microsoft-account-due-to-blocked-tena , where I am unable to access a directory/tenant due to the tenant being blocked due to inacitvity.

For some info, I had signed up for the azure free trial back in October 2023 to play around while I was in school, and I am planning to go for my certifications now, so I figured I'd organize my azure account again. I was greeted with the blue error screen flaunting Error code: AADSTS5000225. This error was originally blocking me from even logging in to do anything.

I have worked around this by somehow by making a new tenant/directory and set it as my default to log in, but now I have my old directory unable to be accessed due to the tenant being blocked due to inactivity.

For clarification, this is my own personal account, which should imply that I am my own administrator for the account. But since this isn't a work or school account, I cannot login to certain resources (such as https://myaccount.microsoft.com/ that the aformentioned link says to do) and leave or delete the old inactive tenant or directory. Nor am I able to access any admin resources to request reactivation or deletion because this is a personal account, and not a work/school account.

I wish have the old tenant and directory deleted but it seems I'm unable to do so myself since I can't even open the directory or tenant without encountering the blue error page of Error code: AADSTS5000225. What steps can I take or who would be able to help me delete this tenant, that I created on this personal account, that I'm unable to even open to delete?

This is what I'm greeted with each time I try to access anything relating to that tenant. User's image

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

1 answer

Sort by: Most helpful
  1. MaskSam 0 Reputation points
    2025-10-26T16:28:23.02+00:00

    The error code AADSTS5000225 typically indicates that you're trying to delete an Azure Active Directory (AAD) tenant or directory that is still associated with certain resources or services, or there may be some lingering configurations preventing the deletion.

    Here's a breakdown of what might be causing the issue and how to resolve it:

    1. Check if the Directory is Associated with Any Active Subscriptions
    • Azure subscriptions: If the directory is associated with an active subscription, it cannot be deleted until those subscriptions are removed or transferred to another tenant.

    Actions to Take:

    Go to the Azure portal > Subscriptions.

      Check if there are any subscriptions tied to this directory.
    
      
         If there are any active subscriptions, either cancel or transfer them to another directory.
    ```2. **Verify if the Directory is Set as the Default Directory**
    
    If the directory is set as your **default directory**, you cannot delete it until you switch to a different directory.
    
    **Actions to Take**:
    
       In the Azure portal, go to **Azure Active Directory** > **Switch Directory**.
       
    

    Choose another directory to be your default, and then try to delete the directory again.

    
    The directory might still have active resources such as:
    
       **Azure Active Directory B2C tenants**.
       
    

    Enterprise applications.

     **Microsoft Intune**.
    
     
        **Azure AD Connect**.
    
        
        **Actions to Take**:
    
        
           Check for any **Enterprise applications** or **External identities** that may be still linked to the directory.
    
           
              Go to **Azure Active Directory** > **Enterprise applications** and **Delete** any apps or resources that are tied to this directory.
    
              
                 Also, check under **Users** and **Groups** for any residual entities that might be preventing deletion.
    
    
    Ensure there are no **global administrators** or **service principals** still assigned in the directory.
    
    **Actions to Take**:
    
       Navigate to **Azure Active Directory** > **Roles and administrators**.
       
    

    Review if there are any users with roles that could block deletion (like Global Administrator).

     Remove or reassign those roles, ensuring there are no lingering admin users or groups.
    
    
    It might be possible that some resource deletion processes are still pending in the system.
    
    **Actions to Take**:
    
       Navigate to **Azure Active Directory** > **Deleted items** and make sure there are no lingering items that could prevent deletion.
       
    6. **Wait for a Propagation Delay**
    
    Sometimes, deletion actions take time to propagate in Azure, especially if you've just recently made changes.
    
    **Actions to Take**:
    
       Wait 24-48 hours and then try again, especially if you've recently removed resources, users, or subscriptions.
       
    7. **Check if the Tenant is Used in Other Services**
    
    If the tenant is associated with **other Microsoft services** like **Microsoft 365** or **Power Platform**, you'll need to ensure that it is completely unlinked before you can delete it.
    
    **Actions to Take**:
    
       Check for any **Microsoft 365** or **Power Automate** links under the tenant.
       
    

    Remove or transfer any associated Microsoft 365 data or Power Platform resources to another directory if needed.

    
    Once you've addressed all the above steps and ensured that there are no dependencies, you can proceed to delete the directory:
    
    In the **Azure portal**, go to **Azure Active Directory** > **Overview**.
    
    Click **Delete Directory**.
    
    Follow the on-screen prompts to confirm the deletion.
    
    If Nothing Works:
    
    If you’ve tried all the above steps and still cannot delete the directory, consider contacting **Azure Support** for further assistance.
    
    Let me know if you need any more help with any of these steps!The error code `AADSTS5000225` typically indicates that you're trying to delete an Azure Active Directory (AAD) tenant or directory that is still associated with certain resources or services, or there may be some lingering configurations preventing the deletion.
    
    Here's a breakdown of what might be causing the issue and how to resolve it:
    
    1. **Check if the Directory is Associated with Any Active Subscriptions**
    
    **Azure subscriptions**: If the directory is associated with an active subscription, it cannot be deleted until those subscriptions are removed or transferred to another tenant.
    
    **Actions to Take**:
    
       Go to the **Azure portal** > **Subscriptions**.
       
    

    Check if there are any subscriptions tied to this directory.

     If there are any active subscriptions, either cancel or transfer them to another directory.
    
    
    If the directory is set as your **default directory**, you cannot delete it until you switch to a different directory.
    
    **Actions to Take**:
    
       In the Azure portal, go to **Azure Active Directory** > **Switch Directory**.
       
    

    Choose another directory to be your default, and then try to delete the directory again.

    
    The directory might still have active resources such as:
    
       **Azure Active Directory B2C tenants**.
       
    

    Enterprise applications.

     **Microsoft Intune**.
    
     
        **Azure AD Connect**.
    
        
        **Actions to Take**:
    
        
           Check for any **Enterprise applications** or **External identities** that may be still linked to the directory.
    
           
              Go to **Azure Active Directory** > **Enterprise applications** and **Delete** any apps or resources that are tied to this directory.
    
              
                 Also, check under **Users** and **Groups** for any residual entities that might be preventing deletion.
    
    
    Ensure there are no **global administrators** or **service principals** still assigned in the directory.
    
    **Actions to Take**:
    
       Navigate to **Azure Active Directory** > **Roles and administrators**.
       
    

    Review if there are any users with roles that could block deletion (like Global Administrator).

     Remove or reassign those roles, ensuring there are no lingering admin users or groups.
    
    
    It might be possible that some resource deletion processes are still pending in the system.
    
    **Actions to Take**:
    
       Navigate to **Azure Active Directory** > **Deleted items** and make sure there are no lingering items that could prevent deletion.
       
    6. **Wait for a Propagation Delay**
    
    Sometimes, deletion actions take time to propagate in Azure, especially if you've just recently made changes.
    
    **Actions to Take**:
    
       Wait 24-48 hours and then try again, especially if you've recently removed resources, users, or subscriptions.
       
    7. **Check if the Tenant is Used in Other Services**
    
    If the tenant is associated with **other Microsoft services** like **Microsoft 365** or **Power Platform**, you'll need to ensure that it is completely unlinked before you can delete it.
    
    **Actions to Take**:
    
       Check for any **Microsoft 365** or **Power Automate** links under the tenant.
       
    

    Remove or transfer any associated Microsoft 365 data or Power Platform resources to another directory if needed.

    
    Once you've addressed all the above steps and ensured that there are no dependencies, you can proceed to delete the directory:
    
    In the **Azure portal**, go to **Azure Active Directory** > **Overview**.
    
    Click **Delete Directory**.
    
    Follow the on-screen prompts to confirm the deletion.
    
    If Nothing Works:
    
    If you’ve tried all the above steps and still cannot delete the directory, consider contacting **Azure Support** for further assistance.
    
    
    0 comments No comments

Your answer

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