OBLYTECH Logo
OBLYTECH Logo

Bulk Delete Approval Process for Salesforce Data

A bulk delete approval process for Salesforce data is a written gate that any mass deletion must pass before it runs. The requester documents why the records should go, a backup export is saved and checked, and a second approver signs off. Nothing is deleted until all three steps are complete.

Why a mass deletion needs its own gate

Deleting one record by hand is easy to check. A mass deletion is different. When a saved list view or a report export feeds a delete job, one wrong filter can remove thousands of accounts, contacts or opportunities in a single pass. The person who built the filter is the person least likely to notice the mistake, because they already believe the selection is correct. A second reader catches what the author cannot see.

Recovery after the fact depends on whether a clean copy exists, and an export taken during a cleanup is often incomplete. The gate moves the decision to a point where the data still exists in full.

Set the rules for when the gate applies

Write down the trigger before the first request arrives. Many teams use two rules together: a record count above a set level, and a list of object types that carry higher risk, such as accounts with child records, contracts, billing data and records that hold consent or opt-out status. Either rule sends the job into the gate.

Choose a count that fits your data volume

The right threshold depends on how large your org is and how often the team runs cleanup jobs. A team that deletes a few hundred stale leads each month may find a low threshold creates too much paperwork. A team that runs occasional large jobs may want a lower number so that small mistakes do not pass as routine. Review the threshold after the first few quarters of use, and change it in writing.

Treat related records as a separate risk

A filter that looks narrow on one object can remove or orphan records on related objects. Before submitting a request, the requester lists each object the job touches, including the ones the filter does not name directly. If a related object is missing from the list, the request goes back for revision.

Write a request the approver can test

The request is the core document of the gate. It needs four parts: the records targeted, the exact selection method, the reason for removal, and the planned run window. Paste the filter logic or the record ID list as text. A screenshot of a filter panel is hard to rerun, and an approver who cannot rerun the selection has to take it on trust.

Write the reason as a checkable statement

“Duplicates” gives an approver nothing to test. A better reason names where the records came from, what condition makes them wrong, and what evidence shows that condition. For example, a list imported in one batch from an old event, with no activity since, and a current import that covers the same people, gives the approver three claims to check. Each claim can be confirmed or rejected.

Record the expected count before the run

Ask the requester to write the expected number of records next to the filter at the moment of submission. The approver checks that the filter returns the same number when rerun. After the job, the actual count is compared with the expected count. A difference is the first thing to investigate, and it matters more than the total itself.

Export and check the backup before sign-off

A backup export has value when it can rebuild what the job removed. Export the full records in scope, including the fields needed to recreate them and the identifiers that link each record to its parents and children. Take the export immediately before the run, since data can change between a weekly snapshot and the actual job.

The tool choice matters less than the check. Open the export file, confirm that the row count matches the expected count on the request, and confirm that the key identifiers are present. A backup that nobody has opened is an assumption about the data, not a backup. For a comparison of the options for moving records in and out of Salesforce, see the options for moving records in and out of Salesforce.

Store the backup where the approver can open it

Keep the export in an access-controlled location outside the org, and name the file with the job reference and the date. Record who created it. The approver needs to open the file during review, and the restore owner needs to know where it is before the run starts. If the file lives on one person’s laptop, the gate has a gap.

Assign roles across the gate

Separate the people who build the request, approve it and run it. The gate is weaker when one person does all three. A workable starting split looks like this:

  1. Requester: builds the filter, writes the request, creates the backup export and lists the related objects.
  2. Second approver: reruns the filter, reads the reason, opens the backup and checks the scope against the related object list.
  3. Data owner: resolves disagreements and keeps the sign-off log for the business object.
  4. Job runner: executes the approved job in the approved window and records the outcome.

Approve the request with clear checks

The second approver challenges the request. They do not repeat the requester’s work from scratch. The approver should check four things: the filter returns the listed records when rerun, the reason matches those records, the backup opens with the expected count, and the run window avoids active imports, campaigns or integrations that write to the same objects.

If one check fails, the request returns to the requester with the failed check named. It re-enters review as a new version with a new version number. This keeps the reviewed scope tied to the approval and stops a changed filter from riding on an old sign-off.

Keep a sign-off entry the team can audit

Sign-off is a dated entry, not a checkbox. It names the approver, the job reference, the expected count, the backup file location and the run window. A sign-off that reads just “approved” does not help when someone asks next year what was removed and why. Store the entry with the request, not in a chat thread.

For help planning this work across the org, see Salesforce implementation.

Run the approved job and log the outcome

Run the job in the approved window, and do not change the filter between approval and execution. A changed filter is a new request. Watch the job for errors while it runs, and log the final count against the expected count when it finishes.

Record the outcome where the request lives. The log should show start and end times, the number of records removed, any records that failed to process, and the backup location. Decide retry rules before the run. Deciding them during an incident leads to rushed choices that the approval did not cover.

Check what fires when records are deleted. Triggers, flows and scheduled jobs can respond to a large delete in ways that a small test does not show. The developer checklist for bulk-safe trigger design sets out the logic side of that check, and the approver should ask for the answer before the window opens.

Common failure points in bulk delete approvals

Four patterns come up often enough to plan for. The first is a stale filter. A list view saved months ago may now select different records, so the approver must rerun the selection at review time. The second is a late export, taken after the run or from a snapshot that predates recent edits. The third is a scope sign-off that checks the count but not the objects, which lets a related object disappear unreviewed.

The fourth is the duplicate cleanup that moves straight into deletion. Merging duplicates and removing them are different actions with different risks. The gate should treat a merge that retires a record as a delete. For the review side of that work, the duplicate review routine for data stewards sets out the checks to run before any record is retired.

Questions about approving bulk deletes in Salesforce

Can a manager outside the data team approve a request?

Yes, if that person can rerun the filter and open the backup. Approval from someone who cannot inspect the export adds little, because the check depends on the file.

Can a deleted record be recovered without a backup export?

That depends on your org configuration and on how the records were removed, so check the recovery path on your own instance before you rely on it. Treat it as a fallback, not as the backup. The export is the copy you control, and you can verify it before the job starts.

How long should the backup export be kept?

Keep it for as long as your retention policy requires for the object, and longer if the data is under a legal hold. Put the retention period in the written standard rather than deciding it per job, so the same rule applies to each export and the team does not need to argue it again.

Should merges go through the same approval as deletes?

Merges that retire a record belong in the same gate, because the surviving record can change in ways the reviewer needs to see. Merges that update fields without retiring a record can follow a lighter path that the standard defines.

What happens when the requester and the approver disagree?

The requester can revise the request and resubmit it as a new version. If the disagreement remains, the data owner decides whether the job runs, and the decision goes into the sign-off log with a short reason. The approver should not be overruled quietly, and the requester should not run the job on their own.