How to find unused custom fields in Salesforce
Old orgs collect hundreds of custom fields. Before you delete one, you need to know two things: is it filled in, and is it used by any code, flow, report or layout?
1. Is the field used anywhere? ("Where is this used?")
- Setup → Object Manager → the object → Fields & Relationships → open the custom field.
- Click Where is this used?. Salesforce lists Apex, flows, formulas, layouts, reports and other metadata that reference it.
This works one field at a time and only for custom fields.
2. Is the field filled in?
Count how many records have a value:
SELECT COUNT() FROM Account WHERE Region__c != null
Long text, rich text and some other field types can't be filtered this way. Check those in a report or by exporting a sample.
3. Check layouts and permissions
A field that is on no page layout, no Lightning page and visible to no profile is a strong clean-up candidate. Look at Page Layouts and Set Field-Level Security on the field.
The whole object at once (SF Manager)
- In SF Manager, open Testing & Data → Data Utilities, pick the object, open Field usage and click Analyze. Each field shows how often it is filled in recent records, and fields that are 0% filled are counted at the top. Download the list as CSV.
- For the full picture, open Object 360 for the object. It checks layouts, Lightning pages, Apex, flows and formulas, and marks a custom field unused only when it is on none of them and empty in recent records. The All objects Excel lists unused items for every object.