Salesforce Standard objects do not provide the option to truncate tables. So, if you are loading lots of data in a standard object say Case or Accounts and needs rounds of iteration to load and delete records then you end up using the mass delete from the UI or the delete by ID's option of the data loader.
Solution
Well, Salesforce has a customizeable setting for custom objects called Enable Custom Object Truncate.
Truncating is a fast and easy way of deleting data.
Click on Your Name-->Setup-->Customize-->User Interface
Select Enable Custom Object Truncate.
Once you check this setting, locate the desired custom object and you should see a button called Truncate next to the Delete button.
Hit the Truncate button to delete transaction records related to the object; the meta-data is left untouched. The Delete button serves a different purpose and will outright delete your object so be wary of hitting that button by mistake.
No comments:
Post a Comment