Loading

Deleting Salesforce Custom Object(s) Throws Internal Server Error

Fecha de publicación: Jun 29, 2026
Descripción

When an administrator attempts to delete a custom object from the Salesforce Setup UI (Setup > Object Manager > [Object Name] > Delete), an "Internal Server Error" is displayed and the deletion fails. This error typically occurs when the custom object has one or more soft-deleted fields.
A "soft delete" in Salesforce means a field has been removed from the user interface (for example, deleted from Setup > Object Manager > [Object Name] > Fields and Relationships) but its underlying data has not yet been fully purged from the Salesforce database. The field remains in a pending deletion state. Salesforce does not allow the deletion of a custom object when it has fields in this soft-deleted state.

Solución

Self-Service Diagnostic Steps

Before contacting Salesforce Support, perform the following checks:

  1. Navigate to Setup > Object Manager > [Your Custom Object] > Fields & Relationships.
  2. Check whether any fields were recently deleted. Deleted fields may appear in a "Deleted Fields" section or may be visible in the Salesforce Recycle Bin.
  3. Navigate to the Salesforce Recycle Bin (accessible from the App Launcher or the Home tab). Check whether any deleted fields from the custom object are listed. If so, attempt to permanently empty the Recycle Bin for those fields.
  4. Wait 15 minutes and attempt to delete the custom object again from Setup > Object Manager.

Contact Salesforce Support

If the Internal Server Error persists after the above steps, please contact Salesforce Support and provide:

  • The name and API name of the custom object you are attempting to delete.
  • The date any fields were deleted from this object.

Salesforce Support can run a physical delete operation in your org to remove any remaining soft-deleted fields, after which the custom object can be deleted normally.

Número del artículo de conocimiento

000394861

 
Cargando
Salesforce Help | Article