# Delete Tracking

Delete Tracking gives users the ability to track records that have been deleted through the Salesforce UI, ETL, etc. This means that your GRAX dataset stays up-to-date as users, or automation, remove records from your Salesforce org in between backups.

## What is it?

Delete Tracking is an automated GRAX process that routinely monitors all backed-up objects for records deleted directly in Salesforce.

## How do I enable it?

Delete Tracking is enabled by default for all customers to run once per hour.

## How does it work?

Through [this](https://app.gitbook.com/u/W2LGZNuF0cYQ8SQiGiXQexjOoZh1) Salesforce API, Delete Tracking retrieves records deleted directly in Salesforce since the last scan, and GRAX marks any matches as `Deleted`.

{% hint style="warning" %}
GRAX only tracks deletes for records that have already been backed up.
{% endhint %}

To ensure record status accuracy, GRAX also performs a trailing scan, that goes beyond the last scan window, to verify whether each record is still active in Salesforce. Records found inactive are flagged as `Deleted` at the time of detection.&#x20;

The trailing scan was introduced on August 26, 2025, which may result in a noticeable spike in deleted records around that date. An indicator on the Delete Tracking graph and a tooltip at the top of the page provide additional details.

<figure><img src="https://4150568565-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwHKnqFEg4DROpG3KCq3D%2Fuploads%2Fh5C673i49VEprO6eYQ8j%2FDelete%20Tracking%20Trailing%20Scan.png?alt=media&#x26;token=29f00b88-566b-4c1d-8d91-16a7901647de" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
**Unsupported Objects**

Salesforce doesn't support Content objects (`ContentDocument`, `ContentVersion`, or `ContentDocumentLink`) for this type of delete tracking. The `Attachment` object, however, is supported.

[Click here](https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/object-specific_requirements_for_data_replication.htm) to see more detailed requirements of objects that Salesforce allows to be tracked as deleted in this manner, which allows you to determine all objects in your org that can be tracked for deletions by GRAX.
{% endhint %}

## Anomaly Detection

{% hint style="info" %}
Anomaly Detection is currently a pilot feature within GRAX Insights. You’ll be notified as soon as it becomes available in your environment.
{% endhint %}

When GRAX detects an unusually high number of deletes—calculated using a threshold above the [median absolute deviation (MAD)](https://en.wikipedia.org/wiki/Median_absolute_deviation) - it will send you a notification for review.

## Frequently Asked Questions

### Can I adjust the frequency at which Delete Tracking runs?

Yes! The Delete Tracking interval can be adjusted by navigating to `Settings` > `General Settings` > `Delete Tracking Interval`.
