> ## Documentation Index
> Fetch the complete documentation index at: https://help.hoopai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# App Uninstall | Webhook Events

> Fires when your app is uninstalled at the location or company level.

The `AppUninstall` event fires whenever your app is removed, either at the location (account) level or at the company level. The payload identifies the app and the account from which it was removed. Use this event to revoke stored tokens, clean up account-specific data, or trigger offboarding workflows.

## Payload

| Field        | Type     | Description                                                                           |
| ------------ | -------- | ------------------------------------------------------------------------------------- |
| `type`       | `string` | Always `"UNINSTALL"`                                                                  |
| `appId`      | `string` | ID of the app that was uninstalled                                                    |
| `companyId`  | `string` | Company ID from which the app was removed                                             |
| `locationId` | `string` | Account ID if uninstalled at the location level; omitted for company-level uninstalls |

## Example payload

#### Location level

```json theme={null}
{
  "type": "UNINSTALL",
  "appId": "ve9EPM428h8vShlRW1KT",
  "locationId": "otg8dTQqGLh3Q6iQI55w",
  "companyId": "otg8dTQqGLh3Q6iQI55w"
}
```

#### Company level

```json theme={null}
{
  "type": "UNINSTALL",
  "appId": "ve9EPM428h8vShlRW1KT",
  "companyId": "otg8dTQqGLh3Q6iQI55w"
}
```

## Related

* [App Install](/api-reference/webhooks/app-install) — fires when your app is installed
* [OAuth 2.0](/api-reference/oauth/overview) — authorization flow used during app installation
