Install Storage Helper from the AppExchange:
If you have not already done so, please install Storage Helper from the AppExchange.
Click each section to learn more.
Storage Helper Setup
Storage Helper can be configured to run in a conservative mode, or a maximum savings mode.
Conservative mode will delete your data at a low risk level of not being able to recover data that was lost to accidental deletion or a change in a business requirement that affects the criteria of data that needs to be kept.
Maximize storage savings mode will increase potential Data Storage savings.
- Assign the Storage Helper Permission Set to all Admin Users that should have access.
- Click the gear icon for Storage Helper Settings.
- Set the Maximum Number of Records to Recycle.
Conservative Mode: The Maximum Number of Records to Recycle is defaulted to 20,000 because this is the number of records that can be restored from the Recycle Bin at any time in most orgs.
The recycle bin allows for one click restoration capability in case of accidental record deletion, whether it is a Storage Helper Job or human error. For your convenience, Storage Helper
will back up all of the records from a Storage Recycle Job, however, you must have selected a backup option at Storage Recycle Job level (available for selection after creating your Storage Recycle Job).
Please see the Storage Helper Backups section for more details.
- If there are more than 20,000 records to be deleted and the Maximum Number of Records to be Recycled setting is set to 20,000 or less, multiple jobs will need to be run manually in order to work through all of the records.
- The recycle bin allows for one click restoration capability in case of accidental record deletion, whether it is a Storage Helper Job or human error. For your convenience, Storage Helper will back up all of the records from a Storage Recycle Job, however, you must have selected a backup option at Storage Recycle Job level (available for selection after creating your Storage Recycle Job). Please see the Storage Helper Backups section for more details.
Maximize storage savings mode.
- If you are using the backup options, the data can be recovered from the backup file rather than the recycle bin. Therefore, the Maximum Number of Records to Recycle setting can be increased up to a maximum of 50,000, otherwise clear out the setting so that there is not a limit on the number of records. Please note that if not all of the Storage Recycle Jobs have backup selections and this setting is greater than 20,000, there is a risk of data loss for the settings that do not have backup selections.
- Conservative Mode: The Maximum Number of Records to Recycle is defaulted to 20,000 because this is the number of records that can be restored from the Recycle Bin at any time in most orgs.
- Enter the Alert Threshold Percent representing the Data Storage utilization level at which you would like to receive notification.
- Enter the email address(es) to send the notification to.
- If you have purchased storage at a discounted rate, select the Salesforce Data Storage is Purchased at a Discount flag and then enter your cost per 500MB for accurate savings calculation.
Select Storage Helper Run Mode.
- You may either select the method by which you would like Storage Helper to run now by clicking the Change Run Mode button, or return to this step after creating your Storage Recycle Job(s).
- From the Gear Icon, click the Change Run Mode button.
- In the Run Mode popup select how you would like Storage Helper to process Storage Recycle Jobs.
- Manual Run Only - By selecting this option, Storage Helper will not automatically run.
- Run After Salesforce Data Exports - Storage Helper will run the Storage Recycle Job(s) you have activated after each export has completed.
- Run on a Defined Schedule - Allows you to schedule when you would like Storage Helper to run.
- If you do choose an automated option, you can still manually run at any time by selecting the Run button in the upper right corner of the All Storage Recycle Jobs page.
- Click Save.
- Next to the Gear icon, you will also find an FAQ button for in app answers to FAQs.
- Using Storage Helper
- Create Storage Helper Jobs to delete data that you no longer need.
- Click the New Storage Recycle Job button in the upper right hand corner of the Storage Recycle Jobs page.
- Enter the Job Name, the object to clean up, and any notes desired and click Next.
- Create desired filter criteria to ensure the correct records are deleted. You will need to select the field to filter on, choose the filter logic, and select the condition that should be met.
- Select the Storage Helper Backup Mode. If configured to do so, Storage Helper will back up just records that are to be deleted into a .csv file. Please note that this does not back up all of your data, only the records deleted by Storage Helper. Although it is not required, it is HIGHLY recommended to backup all of your Salesforce data, not just the records that Storage Helper touches. See our section Export Backup Data from Salesforce to learn more about backing up your data.
- If you delete a Storage Recycle Job, all of the backup files for that setting will be deleted as well. You would need to download the files and save them elsewhere before deleting the job.
- Off will not backup any records during Storage Recycle Job run.
- Backup All Fields will backup up all fields on the records that are deleted.*Conservative Mode
- Select Fields to Backup will allow you to select certain fields to backup. *Maximize Storage Savings Mode
- Note: A maximum of 300 fields will be queried.
- Select whether you would like to keep the setting inactive until you preview the records or activate. We recommend keeping any new Storage Recycle Jobs inactive until filter criteria are fully defined and matching records have been previewed.
- Administering Storage Helper Jobs
- In the Detail tab to the right, you can preview records waiting to be deleted by a Storage Recycle Job, edit the Storage Recycle Job, activate the job or delete the job.
- In the Criterion Tab to the right, you can review your criteria and edit/delete, add new criteria, or change your Filter Logic.
- In the Backup Tab to the right, you can select your backup mode and view your backup files after running the Storage Recycle Job by using the View Backup Files tab.
- Export Backup Data from Salesforce
You can learn more about backing up data in our blog: How to Avoid Hitting The Salesforce Data Storage Limit In Your Org You can manually export data, however, it is best practice to backup your data on a scheduled basis. There are different options for data backup outlined in the blog article. One option is to use Salesforce Data Export.
For additional assistance with your archival needs, please email: firstname.lastname@example.org
Storage Helper Screenshots:
NOTE: With either a manual or scheduled run, be sure to backup your data first. Recovering data that has been lost is extremely costly. You can find more information regarding Salesforce Data Recovery in the How to Avoid Hitting the Data Storage Limit blog in the Storage Helper Use Case Library or use the Storage Helper backup options.
Do you have any cool Storage Helper Use Cases in mind? Please share below!