Delete vs Erase Custom Object #inSalesforce

Delete Custom Object #inSalesforce

Deleting a custom object does the following:

  • Deletes all the data that currently exists in all records of that custom object
  • Deletes all tracked history data associated with the custom object
  • Deletes the custom tab and list views for the object
  • Deletes workflow rules and actions that use the object
  • Deletes all related mappings to entity interfaces and the corresponding fields
  • Hides the custom object definition and all related definitions
  • Hides the object's data records and all related data records
  • Disables report types for which this is the main object
  • Disables custom reports for which this is the main object
  • Deactivates custom formula fields on the object
  • Deactivates custom validation rules and approval processes on the object

To preserve a record of data for future reference, run a data export before deleting custom objects by clicking Data | Data Export.

After you've deleted this custom object, it appears in the deleted objects list for 15 days. During that time, you can either undelete it to restore it and all the data stored in it, or delete it permanently. When you undelete a custom object, some properties might be lost or changed. After 15 days, the object and its data are permanently deleted.

Erasing a custom object permanently deletes the following items:

  • The custom object definition
  • Data records in the object
  • Tracked history data associated with the object
  • Approval processes and approval histories associated with the object
  • Tags associated with records in the object
  • Features directly related to the object (for example, custom validation rules, custom buttons, or links)
  • References to the custom object from other objects (for example, from reports or page layouts)

Erased custom objects cannot be restored. The data is immediately deleted.

Visual: https://www.youtube.com/watch?v=ObDD0Cl6iO8

Comments