function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ian Lin 716Ian Lin 716 

Data Loader or Mass Delete?

A manager is requesting all records from a custom object that are more than 12 months old and have a status of new be deleted.What should the administrator use to honor this request?
  1. Data Loader
  2. Mass delete
  3. Data Import Wizard
  4. Mass edit from lists
Kindly provide your suggestions as to why the answer is what it is and helpful links to read further. 

Thanks
Best Answer chosen by Ian Lin 716
AnkaiahAnkaiah (Salesforce Developers) 
Hi Ian,

Answer is Dataloader.

Export all records using SOQL and keep them in CSV file and follow the below steps to export/delete the records using data loader.

SOQL query
SELECT Id FROM Custom_Object__c WHERE Status__c='New' AND CreatedDate = LAST_N_MONTHS:12

https://help.salesforce.com/s/articleView?id=sf.inserting_updating_or_deleting_data.htm&type=5

If this helps, please mark it as best answer.

Regards,
Ankaiah Bandi