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

# account_deleted Event

> Track when an account is permanently deleted from your SaaS application.

Fires when an account is permanently deleted. Track this event to measure churn and understand why customers leave.

## JavaScript

```javascript theme={null}
window._upstack('track', 'account_deleted', {
  accountId: 'acct_abc123',
  accountName: 'Acme Corporation',
  cancelReason: 'no_longer_needed',
  cancelFeedback: 'Switching to a different solution',
  mrr: 9900
});
```

## Properties

| Property       | Type   | Required | Description                |
| -------------- | ------ | -------- | -------------------------- |
| accountId      | string | Yes      | Deleted account identifier |
| accountName    | string | No       | Account name               |
| cancelReason   | string | No       | Reason code for deletion   |
| cancelFeedback | string | No       | User-provided feedback     |
| mrr            | number | No       | Lost MRR in cents          |

## When to Fire

* After account deletion confirmation
* After workspace removal completes
* After data retention period expires
