Skip to main content
All CollectionsSalesforce How-Tos and Best Practices
Salesforce: Mass Delete Records From Setup
Salesforce: Mass Delete Records From Setup
Engineering Swantide avatar
Written by Engineering Swantide
Updated over a month ago

Overview of Mass Delete Records Functionality

Salesforce provides administrators with a feature called "Mass Delete Records" that allows the bulk deletion of records from specific Salesforce objects directly from the Setup page. This tool simplifies the process of removing outdated, irrelevant, or duplicate records that may clutter your Salesforce environment and affect data quality.

The Mass Delete Records feature allows you to filter, preview, and remove large volumes of data efficiently. This tool is highly useful when you need to clean up your data without using external tools like Data Loader or manually deleting records one by one.

Key Features:

  • User-Friendly Interface: Accessible from the Setup page, with intuitive filters and previews before deletion.

  • Targeted Record Removal: Supports deletion for standard objects such as Accounts, Leads, Contacts, Activities, Cases, Solutions, Products, and custom objects.

  • Controlled Access: Only available to users with appropriate permissions (Delete and Modify All Data).

  • Recycle Bin: Deleted records are sent to the Recycle Bin for potential recovery within 15 days.

Use Cases for Mass Deletion

  1. Data Hygiene and Maintenance

    • Over time, organizations accumulate irrelevant or outdated records (e.g., old accounts, leads, or contacts). This clutter can affect reporting accuracy and system performance. Admins can use Mass Delete to perform regular data hygiene and remove these outdated records in bulk.

  2. Duplicate Records Cleanup

    • Duplicate records in Salesforce can affect productivity and reporting. Instead of handling duplicates one by one, admins can run filters to identify and delete duplicate entries, such as contacts or leads, in a few steps.

  3. Error Recovery from Data Imports

    • If there’s an issue with a recent data import, such as incorrect mapping or inclusion of irrelevant data, an admin can use the Mass Delete tool to quickly remove the affected records, saving time and effort.

  4. Archiving Old Campaigns or Events

    • For organizations running many campaigns or events, admins can use this functionality to clear out older campaigns that are no longer relevant, reducing clutter in reporting and making room for more current data.

How to Use the Mass Delete Tool: A Step-by-Step Guide

  1. Navigate to the Mass Delete Records Tool:

    • Go to Setup.

    • In the Quick Find box, type “Mass Delete Records” and select it from the dropdown.

  2. Choose the Object:

    • From the list, select the standard object you wish to delete records from (e.g., Accounts, Leads, Contacts, etc.).

    • Custom objects can also be deleted in bulk if the option has been enabled.

  3. Apply Filters:

    • Use the filtering options to narrow down the records you want to delete. For example, you can filter records based on specific criteria such as "Created Date," "Last Modified Date," or custom field values.

  4. Preview the Records:

    • Before finalizing the deletion, preview the list of records that match your filter criteria. This ensures you are only deleting relevant data.

  5. Select and Confirm Deletion:

    • Once you’ve previewed the records, select those you wish to delete (or select all) and click "Delete."

    • Confirm the deletion, and the records will be moved to the Recycle Bin.

Example Scenarios

  • Scenario 1: Cleaning Up Leads After a Campaign After a recent marketing campaign, you have a list of leads that were never contacted. These leads are now outdated, and sales reps have marked them as "Unqualified." You can filter for leads with the "Unqualified" status and delete them in bulk to keep your lead database current.

  • Scenario 2: Removing Duplicate Contacts Your Salesforce instance has multiple entries for the same contact due to poor data entry practices. You use the Mass Delete tool to filter by email or phone number to identify and remove these duplicate records.

  • Scenario 3: Archiving Old Cases Your support team has closed hundreds of cases related to a product line you no longer support. Instead of archiving these records individually, you use Mass Delete to bulk delete cases that have been closed for over a year.

Considerations and Best Practices

  • Backup Your Data: It’s a best practice to back up your data before performing any mass deletion. Salesforce offers data export tools like weekly export and Data Loader for this purpose.

  • Use the Recycle Bin for Recovery: Deleted records are stored in the Recycle Bin for 15 days. If you realize you’ve deleted records in error, you can recover them within this timeframe.

  • Limitations: This tool has a limit of deleting 250 records at a time. If you need to delete a larger volume, consider using Salesforce APIs or external tools like Data Loader.

Conclusion

The Mass Delete Records functionality in Salesforce is a powerful tool for administrators to maintain clean, relevant, and usable data in their Salesforce environment. By following the above steps and use cases, admins can save time and ensure that their data remains accurate and up-to-date.

Did this answer your question?