Loading

How to Export or Delete Archived Tasks and Events in Salesforce Using Data Loader or Workbench

Data pubblicazione: Jun 15, 2026
Descrizione

To export or delete archived activities, you first need the record IDs of the archived Tasks or Events. Archived record IDs can be retrieved using one of the following methods:

  • Custom Report — requires the Archive Days extension to be enabled by Salesforce Support. This extends the number of days for which archived activities appear in reports.
  • Data Loader Export All — uses the Data Loader's "Export All" function, which returns both active and archived records. The standard "Export" function does not return archived records.
  • Backup Data Export
Risoluzione

Video guide to exporting archived activities with Data Loader:


Option 1: Export Using a Custom Report (Archive Days Extension Required)

In order to obtain the archived record Ids through a report, you must request Increasing Archive Days for your Organization.

Note: Before the case, request is opened determine how far back you would like your Archive Date to go and take into account that if you don't go far enough back you're report may not return all archived activities. Support will tell you the limits and implications on how far your date can be moved to in the corresponding case.

After the feature is enabled, you can create reports containing archived activity Ids dating back to the number of days the feature was requested.

To create the report:

  1. Click the Reports tab.
  2. Click New Report.
  3. Select the appropriate report type. Choose Tasks or Events depending on which archived activities you need.
  4. Add the ID field and any other fields you want to export.
  5. Run the report and export the results.  

Option 2: Export Using Data Loader Export All

In order to obtain the activity Ids through Data Loader, you will need to perform an Export All selecting to include the Id field. Please remember that with the Data Loader tasks and events are separate objects so you will need to follow the below steps for both tasks and events individually.

You can easily Export Data including archived activities with the Data Loader by following these steps:

 

  1. Open the Data Loader application.
  2. Click Export All (the Export button will not work in this particular case).
  3. Select Task or Event as the object.
  4. Select the Id field and any other fields you need.
  5. In the filter conditions, add: IsArchived Equals TRUE.
  6. Click Add Condition, then click Finish.
  7. Save the output CSV file. This file contains the IDs of all archived activities.

The resulting file will contain the Ids for archived activities which you can use then use to perform a delete operation with Data Loader. See Insert, Update, or Delete Data Using Data Loader for more details.
 

Option 3: Retrieve IDs from a Backup Data Export

You can also obtain archived activity IDs by Exporting Backup Data.


See also:
Work with Archived Activities
Numero articolo Knowledge

000385173

 
Caricamento
Salesforce Help | Article