Loading

Delete All Records of a Custom Object Using the Truncate Feature in Salesforce Classic

게시 일자: Nov 15, 2025
상세 설명

In Salesforce, custom objects are created to support specific business needs. During testing or development, you may need to remove all records from a custom object.

Instead of deleting records individually, you can use the truncate feature, which allows you to delete all records at once. This method is faster and more efficient but is only available under certain conditions and in Salesforce Classic.

솔루션

To delete all records from a custom object using truncate, follow these steps:


Step 1: Enable Truncate Permission

  1. Go to Setup
  2. In the Quick Find box, search for User Interface
  3. Select User Interface
  4. Enable Enable Custom Object Truncate
  5. Click Save

 


Step 2: Switch to Salesforce Classic

The truncate option is only available in Salesforce Classic:

  1. Click your profile icon
  2. Select Switch to Salesforce Classic

Step 3: Truncate the Custom Object

  1. Click Setup
  2. Navigate to Create → Objects
  3. Select the custom object you want to clear
  4. Note the Object Name
  5. Click Truncate

If the Truncate button is not visible:

  • Verify that the setting in Step 1 is enabled
  1. Enter the Object Name to confirm
  2. Click Truncate

 

All records in the selected custom object will be permanently deleted.


Important Notes

  • This action cannot be undone
  • Truncate deletes all records without sending them to the Recycle Bin
  • Ensure you back up your data before proceeding
  • This feature applies only to custom objects
Knowledge 기사 번호

005228020

 
로드 중
Salesforce Help | Article