Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I delete an application from azure active directory?

The title of my issue is clear enough by itself I hope.... I have only one application in my Applications list in Azure Active Directory. I would like to delete that, because it was only for experimental purposes. But I cannot delete it, the delete icon in the drawer is greyed.

What can I do to delete the application from AAD?

like image 504
Peter Klein Avatar asked Jan 12 '15 20:01

Peter Klein


People also ask

How do I remove an app from an Azure AD?

Search for and select the application that you want to delete. For example, Azure AD SAML Toolkit 1. In the Manage section of the left menu, select Properties. At the top of the Properties pane, select Delete, and then select Yes to confirm you want to delete the application from your Azure AD tenant.

How do you delete a directory in Azure?

To do this, follow these steps: In the Azure AD B2C directory, locate and select the Azure Active Directory blade in the Azure portal. On the Overview menu, select Delete Directory. Follow the instructions in the portal.

How do I delete a principal in Azure portal?

While service principals cannot be deleted, they are actually whitelisted against the deletion task for an Azure AD instance. This means even though these service principals still exist, the deletion of the Azure AD instance will not be stopped.


4 Answers

For those coming by later and are using the new (preview) Azure Portal and are trying to remove a Native App;

The issue is due to the availableToOtherTenants setting, which you can not edit in the UI at the moment of writing. However, you can add the Manifest manually through the Azure Portal and edit the setting. After the edit, you can remove the app.

enter image description here

like image 192
koelkastfilosoof Avatar answered Oct 12 '22 19:10

koelkastfilosoof


If it's a multi-tenant app, you need to convert it back to a single-tenant app before you can delete it. Please confirm that the setting 'Application is Multi-Tenant' (on the configure tab) is set to No.

enter image description here

like image 43
Dushyant Gill Avatar answered Oct 12 '22 19:10

Dushyant Gill


Just adding to this - make sure that you are the owner of the application - if you're not, assign yourself ownership and delete will be enabled.

like image 1
Chris Avatar answered Oct 12 '22 20:10

Chris


Unable to delete Azure AD due to Enterprise Apps (Delete grayed out)

Login to a Powershell (Admin)

  1. Install-Module -Name MSOnline
  2. connect-msolservice (Provide GA Creds)

CAUTION: Following step may delete all the objects/applications recursively and may present multiple errors as well, but in the end, all this will help you to be finally able to delete the Azure AD instance successfully

  1. Get-MsolServicePrincipal -All | Remove-MsolServicePrincipal
  2. Sign-out and Sign-in Azure Portal
  3. All enterprise apps will now be deleted --> You can Delete Azure AD Directory now
like image 1
Arvind Kumar Avatar answered Oct 12 '22 21:10

Arvind Kumar