How to delete an app in Entra ID using HTTP DELETE

  • Last update on September 26th, 2024

Workflows are not available in the Essentials solution.

 

Prerequisites

  • Entra ID application: you must have an application registered in Entra ID that you intend to delete. Make sure to note the application (client) ID.
  • Access token: you need an access token with the Application.ReadWrite.All permission to authenticate your request. You can obtain this token through the OAuth 2.0 client credentials flow.

For detailed information on permissions and how to obtain an access token, please consult the Microsoft Graph permissions documentation.

Execution inputs 

Before starting the deletion process, ensure you have the following information:

  • Application ID: the unique identifier for the application you want to delete from Entra ID.

Deleting an application

Step 1: Set up the action

Add a new action to your Workflow. Navigate to the “HTTP Integrations” category and select the “HTTP API DELETE” action.

Step 2: Configure the URL

Set the URL to target the specific application you want to delete. Use the following format:

https://graph.microsoft.com/v1.0/applications/{application-id}. 

Replace {application-id} with the Application ID you noted earlier.

Step 3: Add the secret key

Enter the secret key associated with Graph API authorization. For more information about the secret key, please refer to the Sending a POST request article.

Step 4: Ensure success status code

Activate this option to make the action fail if the response status code indicates an error. This feature aids in troubleshooting request issues.

Executing the Workflow

After configuring the action, save and publish your Workflow. When you run the Workflow, you'll be asked to input the Application ID you gathered earlier.

Following successful execution, the specified application will be removed from Entra ID. You can confirm the deletion by checking in “Reports > Entra ID applications > App registrations”.