OBLYTECH Logo
OBLYTECH Logo

Unused Field and Component Review Before Cleanup

Before you delete an unused field or retire a flow, check what still points at it. A short dependency review covers reports, page layouts, integrations and dashboards, and it is more likely to catch the references that a usage count alone would miss. Record what you find, decide what to change first, and test the removal in a sandbox before production.

Why a field with no recent entries can still matter

A usage count shows whether people have typed data into a field recently. It does not show whether anything reads that field. A report filter, a page layout, an automated update, an outbound feed or a formula can depend on a value that nobody enters by hand anymore. Some of these readers run quietly on a schedule, and a removed field can surface weeks later as a failed job, after the person who set it up has moved on.

Build an inventory before you judge any field

Start with a list of candidates rather than a verdict. For each field or component, record the object it belongs to, its type, who created it, when it was created and last changed, how many records hold a value, and whether it carries personal or regulated information. Record the owner as well.

  • Object, and the internal name exactly as it appears in your setup
  • Type, such as text, picklist, date, lookup or formula
  • Creator, creation date and date of last change
  • Number of records with a value, and when a value was last written
  • Owner, meaning the team that asked for the field
  • Whether it holds personal or regulated information

Keep the inventory in a shared spreadsheet or tracking tool that the whole review team can edit, and use the same names your reports and integration specifications use. A field known by two labels is easy to miss during the search.

Check each type of dependency in a fixed order

Search each dependency type separately and write down what you find, including the areas where nothing turned up. A clean result in one area does not clear the others. Visible outputs usually take less time to change than hidden automation, so working through the sections in this order lets the team clear the easy items first and give the hidden readers the time they need.

Reports, dashboards and scheduled exports

Search saved reports for the field in filters, column lists, groupings and sort orders. Check reports that individual users keep for themselves, not only the shared ones. Dashboards draw from reports, so trace each dashboard component back to its source report. Scheduled deliveries need their own check. A report that still runs and sends a file to a manager can fail, or send an empty column, without anyone noticing at first. If a dashboard feeds a leadership forecast, check it against the way a pipeline forecast review for executive sponsors is run before you change any field it reads.

Page layouts, record views and search

Open each layout that places the field, including record detail pages, any compact or summary view that shows a few key fields, and any mobile or lightweight view your team uses. Removing a field from a layout is not the same as deleting it, so note which layouts show it and whether users can still reach the value another way, such as a related list, a search or a report. Relationship managers who work from a client review prep routine are a good group to ask before you change a layout they use.

Automations, flows and formulas

Look for each automation that reads or writes the field. That includes validation rules, automated field updates, flows, triggers in custom code and formula fields that refer to it. Any formula that refers to the field has to be rewritten before the field goes, so find those formulas first. A validation rule that checks a value can block saves for users who did not know the rule existed. Export the definition of each automation before you change anything, so you can compare the state before and after the cleanup.

Integrations and data feeds

Integrations are the dependency teams often underestimate. Middleware jobs, data warehouse syncs, marketing platform mappings, finance connectors and custom API calls frequently store field mappings outside the platform, in a document or a configuration file that the platform team does not open day to day. Ask each integration owner to state whether the field is mapped, read, written or ignored. An integration that writes to a removed field can fail with an error in its own log, so the check needs the owner’s answer, not just a text search.

Custom code, components and test cases

Search custom code, components, scripts and test cases for the field name. Test cases that assert on a field will fail once the field is removed, and a component that binds to a field can show an error on a page that many users open.

Decide whether to remove, hide or keep each field

The review should end with one of three outcomes for each candidate. Set the outcome in writing, with the reason and the owner who agreed to it.

  • Remove: no reads, writes or mappings remain, and the owners have agreed to the change.
  • Hide: take the field off layouts and views first, keep the data and automations in place, and set a date for a second look.
  • Keep: a dependency still needs the field, or a process owner requires its history. Record the reason and the date it should be reviewed again.

Hiding is often the safer first step, because it reduces clutter for users while leaving stored values and remaining references intact. Before you hide a field that holds personal information, check who can still see it through field-level access settings. The field-level security checks for compliance reviewers cover that step in more detail.

Run the cleanup in a sandbox before production

A sandbox copy shows what breaks before users do. Bring it up to date with production if the configuration has changed since your last copy, then run the change there first. Read the platform release notes for the period as well, because a platform change can alter how a dependency behaves. A short admin release notes review before each sandbox test helps keep a platform change from hiding a dependency from your search.

  1. Export the definitions, layout assignments and automation details you plan to change. Include any values that must be kept for history, because a field’s stored values are hard to recover once its removal is final.
  2. Remove references in this order: reports and dashboards, page layouts, automations, integrations, custom code and test cases, and last of all the field itself.
  3. Run the processes that touch the field in the sandbox. Create and edit sample records, and include the scheduled jobs that run during the test week.
  4. Check integration logs and scheduled report results for errors after the test run.
  5. Confirm how a deletion can be reversed on your instance, and how long removed metadata stays recoverable, before you apply the change in production.
  6. Apply the change in production during a quiet period, with the field owner available on the first business day afterwards.

For help planning this work, see Salesforce implementation.

Keep a written record of each review

Close the review with a short record. List the candidates, the outcome for each, the owner who agreed, the date and the searches you ran. A field marked as kept needs a review date, or it will stay in the org indefinitely with no one remembering why. If you repeat this review on a regular cycle, the record shortens the next round, because the second search starts from the first search’s results.

Questions about unused field and component reviews

How long should a field sit unused before it enters the review?

There is no fixed period that fits all organizations. Many teams start with fields that have received no new values for a full business cycle, such as a quarter or a year. A field that feeds an annual process can look unused for much of the year, so ask its owner before you rule it out.

What should happen when the person who built a report has left?

Assign the report to a current owner before you change or delete it, and tell the team that uses it. Ask the business owner whether the report still answers a live question. If nobody claims it after a clear notice period, export its definition and then retire it, so the design can be recovered later if someone asks for it.

Who should approve the removal of a field?

Approval usually comes from the business owner of the process the field supports, together with whoever maintains the platform configuration. Add the integration owner when the field is mapped to an outside system. Bring in security or compliance review when the field holds personal or regulated data, because removing it can change what you must retain.

Is hiding a field from layouts the same as removing it?

No. A hidden field still exists, still holds its values, and still works in any report or automation that references it. Hiding it is a reversible step while you watch for questions. Removing it deletes the definition, and once that removal is final the stored values go with it, which makes it a much harder step to undo.

What if a dependency turns up after the removal date?

Stop and assess before you rush. Find the owner of the dependency, decide whether it can be rebuilt on another field, and check whether the field can be restored on your instance. Record the late discovery in the review record, and add that dependency type to the checklist for the next review.

Does the review also apply to custom components?

Yes, using the same method. Custom components, page elements and scripts can depend on a field or on another component, so list them in the inventory with their owners and trace what calls them. A component that nothing calls can usually be retired once its owner agrees, but confirm that no page loads it through a route your search did not cover.