> For the complete documentation index, see [llms.txt](https://docs.sprinto.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sprinto.com/integrations/remove-integration-access/microsoft-defender-for-endpoint.md).

# Microsoft Defender for Endpoint: Remove Sprinto Access

Remove the access Sprinto was given in Microsoft Defender for Endpoint. Covers every way Sprinto can be connected to Microsoft Defender for Endpoint and the steps to take in Microsoft Defender for End

Use this guide to remove the access you gave Sprinto in Microsoft Defender for Endpoint. These steps are done in Microsoft Defender for Endpoint, not in Sprinto. To connect Microsoft Defender for Endpoint to Sprinto again later, see [Microsoft Defender Endpoint Integration](https://docs.sprinto.com/integrations/overview/microsoft-defender-endpoint-integration.md).

## Which connection method did you use?

Sprinto can be connected to Microsoft Defender for Endpoint in 2 ways. Find the method you used, then follow the steps in that section.

| Connection method                                                                                 | How to tell                                                                                                                  |
| ------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| [Defender connection (admin consent)](#defender-connection-admin-consent)                         | Clicked 'Connect to Microsoft Defender…' and accepted a Microsoft admin-consent screen (did not enter any IDs or secret).    |
| [Defender connection (your own app registration)](#defender-connection-your-own-app-registration) | Entered a Directory (tenant) ID, Application (client) ID and client secret from your own Entra app when connecting Defender. |

***

## Defender connection (admin consent) <a href="#defender-connection-admin-consent" id="defender-connection-admin-consent"></a>

**Who must do this:** Cloud Application Administrator (or Application Administrator / Global Administrator) in Microsoft Entra ID

**What gets removed:** The partner Defender app consented in your tenant is permanently deleted.

### Steps

1. Sign in to the Microsoft Entra admin center as at least a Cloud Application Administrator and go to **Entra ID** → **Enterprise apps** → **All applications**. Clear the Application type filter so every app is listed.
2. Find the app you approved on the consent screen: open likely matches → **Permissions** → **Admin consent** tab and look for WindowsDefenderATP permissions such as Machine.Read.All. Copy its Application ID from Overview.
3. Open the app → **Properties** → **Delete** → **Yes**.
4. Permanently delete it. Deleted apps stay in a 30-day recycle bin that the admin center can't empty, so in Graph Explorer run `GET https://graph.microsoft.com/v1.0/directory/deletedItems/microsoft.graph.servicePrincipal?$filter=appId eq 'APP_ID'` (APP\_ID = the Application ID you copied), copy the `id` it returns, then run `DELETE https://graph.microsoft.com/v1.0/directory/deletedItems/{id}`. PowerShell alternative: `Remove-MgDirectoryDeletedItem -DirectoryObjectId {id}`.
5. If you ever blocked this app, undo it or reconnecting will fail: remove it from any Conditional Access policy that targets it (**Entra ID** → **Conditional Access** → **Policies** → **Target resources**), and if it's banned in the Microsoft Defender portal (**Cloud apps** → **OAuth apps**), select **Unban app**.

### Confirm it's removed

Search Enterprise apps → All applications (Application type filter cleared) for the Application ID: no result. The Graph `GET /directory/deletedItems/microsoft.graph.servicePrincipal?$filter=appId eq '…'` query returns an empty list.

{% hint style="warning" %}
Sprinto's Defender for Endpoint and Defender vulnerability (VMS) connections may use the same app — deleting it disconnects both.
{% endhint %}

**Official guide:** [Microsoft Learn: Delete an enterprise application](https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/delete-application-portal)

***

## Defender connection (your own app registration) <a href="#defender-connection-your-own-app-registration" id="defender-connection-your-own-app-registration"></a>

**Who must do this:** Cloud Application Administrator, Application Administrator or owner of the app registration in Microsoft Entra ID

**What gets removed:** The app registration you created for the Defender connection, its client secret and its service principal are permanently deleted.

### Steps

1. Sign in to the Microsoft Entra admin center as at least a Cloud Application Administrator and go to **Entra ID** → **App registrations** → **All applications**. Open the app whose Application (client) ID matches the one you entered when connecting Defender.
2. Go to **Certificates & secrets** → **Client secrets** and delete the secret created for this connection.
3. Go back to Overview, select **Delete**, tick the box if one appears, and select **Delete**.
4. Go to **App registrations** → **Deleted applications**, select the app, select **Delete permanently**, then **Yes**.
5. Permanently delete its leftover enterprise app: in Graph Explorer run `GET https://graph.microsoft.com/v1.0/directory/deletedItems/microsoft.graph.servicePrincipal?$filter=appId eq 'APP_ID'` (APP\_ID = the Application (client) ID), copy the `id`, then run `DELETE https://graph.microsoft.com/v1.0/directory/deletedItems/{id}`.
6. Optional: delete any saved copies of the client secret (password manager, files, chat). This doesn't affect reconnecting.

### Confirm it's removed

App registrations → All applications and → Deleted applications no longer show the Application (client) ID, and the Graph deletedItems query for that appId returns an empty list.

{% hint style="warning" %}
If this app is also used by another Sprinto connection or any other tool, deleting it breaks that too — check before deleting.
{% endhint %}

**Official guide:** [Microsoft Learn: Remove a registered app](https://learn.microsoft.com/en-us/entra/identity-platform/howto-remove-app)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.sprinto.com/integrations/remove-integration-access/microsoft-defender-for-endpoint.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
