How to delete app registration

Abner 0 Reputation points
2023-02-06T03:30:38.0566667+00:00

enter image description here enter image description here

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,451 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Dillon Silzer 57,466 Reputation points
    2023-02-06T04:01:09.81+00:00

    Hello Abner,

    You will need delete permissions to do so:

    Application registration permissions for custom roles in Azure Active Directory

    https://learn.microsoft.com/en-us/azure/active-directory/roles/custom-available-permissions#create-and-delete

    You should also be able to do this with the following roles:

    • Global Administrator
    • Application Administrator
    • Cloud Application Administrator

    https://learn.microsoft.com/en-us/azure/active-directory/roles/delegate-app-roles#assign-built-in-application-admin-roles


    If this is helpful please accept answer.


  2. JamesTran-MSFT 36,656 Reputation points Microsoft Employee
    2023-02-08T22:01:05.7666667+00:00

    @Abner

    Thank you for your post and I apologize for the delayed response!

    Error Message:

    Failed to delete application. Error detail: Insufficient privileges to complete the operation.

    From your error message and as mentioned by @Dillon Silzer, you'll need the correct delete permissions to delete your Azure AD App Registration. I'll share some steps below to hopefully point you in the right direction.


    Prerequisite:

    To remove an Azure AD App Registration, you'll need the microsoft.directory/applications/delete permission. This can be found in the roles below. For more info - Azure AD built-in roles.

    • Global Administrator
    • Application Administrator
    • Cloud Application Administrator
    • Hybrid Identity Administrator
    • Directory Synchronization Accounts

    Confirm user permissions:

    To start off, you'll need to confirm your user's permissions/role within Azure AD, to ensure it matches the correct role above.

    Note: If you already have the correct permissions and are running into issues deleting your app, please let me know.

    1. Navigate to Azure Active Directory
    2. On the right-hand side, there should be a "My Feed" section where you should be able to see your user's role. Note: You can also view your permissions/role by navigating to Azure Active Directory -> Users -> Select your user -> Assigned RolesUser's image

    Assign the correct role:

    If your user doesn't have the correct permission(s)/role to delete your Azure AD App Registration, you'll need to assign one on the roles above to your user. To do this, you'll need to be a Privileged Role Administrator or Global Administrator.

    Assign a Role:

    If you can't assign roles, you'll need to reach out to a Privileged Role Admin or Global Admin within your tenant.

    1. Within Azure Active Directory, select Roles and administrators.
    2. Find the role you need for example - Global Administrator.
    3. Select the role name to open the role.
    4. Select Add assignments and then select the users you want to assign to this role.
    5. Select Add to assign the role.User's image

    Remove Azure AD App Registration:

    Once you have the correct permissions to delete your Azure AD App Registration, you can retry the delete operation.

    1. Within Azure Active Directory, under Manage, select App registrations.
    2. Select the app that you want to delete.
    3. From the Overview page, select Delete.
    4. Read the deletion consequences. Check the box if one appears at the bottom of the pane.
    5. Select Delete to confirm that you want to delete the app.

    I hope this helps!

    If you have any other questions, please let me know.


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.