When you delete a custom object, every workflow rule, validation rule, formula field, and other metadata configured on it is deleted with the object. You can’t delete a custom object that’s referenced from elsewhere (other objects, Apex, fields) — but its own internal dependencies (workflow rules, page layouts) come along automatically.
Custom object delete
- You open Setup → Object Manager → click the custom object → Delete.
- Salesforce checks for external references — any Apex, formula on another object, lookup from another object, etc. that point to this object.
- If references exist, you must delete or update them first.
- If clear, the object is moved to the Deleted Objects list (recycle bin for metadata) where it sits for 15 days before permanent deletion.
- During those 15 days you can Undelete to restore everything — including the workflow rules.
- After 15 days, the object and all its associated metadata are permanently gone.
Standard object — you can’t delete it
Standard objects (Account, Contact, Opportunity, etc.) cannot be deleted. So the question is moot for them — workflow rules on standard objects only go away when an admin actively deletes them.
Time-based actions in the queue
What about time-based actions that were already queued when the object was deleted?
- During the 15-day soft-delete window, queued time-based actions remain in the time-based workflow queue
- They will not fire while the object is in soft-delete state
- If the object is undeleted, queued actions can resume firing if their scheduled time hasn’t passed
- After permanent delete, all queued actions are purged
A side note: undelete behaviour
This is a useful interview “huh” moment: Salesforce’s metadata soft-delete is generous. Within 15 days of deleting a custom object, undelete brings back not just the object and its data but every piece of declarative configuration — workflow rules, validation rules, page layouts, custom buttons. This contrasts with code-only platforms where deleting a “table” is permanent and immediate.
What interviewers want
- The straightforward answer: deleted with the object (for custom objects)
- The 15-day soft-delete window
- Awareness that standard objects can’t be deleted
Verified against: Salesforce Help — Delete Custom Objects. Last reviewed 2026-05-17 for Spring ‘26 release.