Truncating custom objects

Truncating a custom object allows Salesforce to delete all records from particular objects and save the empty object and its metadata. This is a fast way to delete all records from custom objects compared to Import Wizard and Data Import Wizard. This action will remove records from custom objects and you cannot recover them from the recycle bin.

Enabling truncate for custom objects

Before using this feature for your organization, you must enable it. To do this, follow these instructions:

  1. Navigate to Setup | Build | Customize | User Interface.
  2. On the user interface page, navigate to the Setup section.
  3. Select the Enable Custom Object Truncate checkbox, as shown in the following screenshot:
  4. Click on Save.

Performing truncate for ...

Get Salesforce.com Customization Handbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.