Loading

Use Data Loader to Mass Delete Field History

Date de publication: Apr 2, 2026
Description

Field History Tracking records can be deleted using Data Loader or other API tools.

Before deleting records, you must enable specific settings and permissions:

  1. Go to Setup and search for User Interface
  2. Enable:
    • Delete from Field History
    • Delete from Field History Archive
  3. Assign the following permissions to users via Profiles or Permission Sets:
    • Delete From Field History
    • Delete From Field History Archive

Note: These permissions will only appear after enabling the User Interface settings above.

Résolution

Field History records are stored as separate objects in Salesforce (for example, AccountHistory for Account). To delete them in bulk, you must first export the records to obtain their IDs, then use those IDs to perform the deletion using Data Loader.

⚠️ Important

  • Always back up your data before deleting records
  • Test with a small set of records first
  • Verify results after deletion in Salesforce

Step A: Export Field History Records

  1. Open Data Loader and click Export
  2. Select Show all Salesforce objects
  3. Choose the object history:
    • Example (standard): Account History (AccountHistory)
    • Example (custom): History: <Custom_Object_Name>
  4. Choose a file location and save as .csv
  5. Click Next
  6. Select Id (or all fields if needed)
  7. Apply filters if required
  8. Click Finish

After export:

  • Save a backup copy
  • Review the file and keep only records you want to delete

Step B: Delete Field History Records

  1. In Data Loader, click Delete
  2. Select Show all Salesforce objects
  3. Choose the same object used in export
  4. Upload the cleaned CSV file
  5. Click Next → OK
  6. Click Create or Edit Maps
  7. Map Id → ID (use Auto-Match or manual mapping)
  8. Click Next
  9. Choose location for success/error files (optional)
  10. Click Finish
Numéro d’article de la base de connaissances

000381915

 
Chargement
Salesforce Help | Article