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

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# On HighLevel user deleted

> Run when a user is deleted from the connected sub-account.

Use `highlevel.onUserDeleted` to run when a user is deleted from the connected sub-account.

```ts automations/highlevel-on-user-deleted.automation.ts theme={null}
import { automation, markSignificant } from "automate.ax"
import { highlevel } from "automate.ax/highlevel"

export default automation("On HighLevel user deleted", () => {
  const event = highlevel.onUserDeleted()
  markSignificant(event)
})
```

HighLevel triggers require OAuth because HighLevel sends marketplace webhooks for an installed app. Optional static `account` selects a named OAuth binding; the project binding is the default.

## Trigger data

Returns the typed `UserDelete` webhook payload with the deleted user's last supplied identity, role, permissions, scopes, and locations.

Automate.ax verifies HighLevel's Ed25519 signature against the exact request body, rejects deliveries outside a five-minute replay window, and deduplicates retries by `webhookId`.
