Skip to main content

vulkro-sf costreport

Estimates what unused metadata in an SFDX project could be cleaned up, and groups it by what the cleanup saves. Also available as cost-report.

vulkro-sf costreport .
vulkro-sf costreport . --format json > costreport.json

It builds the cross-file reference graph, finds metadata nothing references, and groups the candidates by cost driver:

DriverExamples
StorageUnused custom fields, reports, custom metadata types.
Deploy and package weightInactive validation rules, unused permission sets.
Maintenance debtOrphaned classes and flows, unused labels, templates, static resources, page layouts.

Every item is a candidate, not a delete list. Static source cannot see dynamic references, managed packages or live-org wiring, so confirm before you remove anything. No org connection is needed.

FlagWhat it does
[PATH]SFDX project or retrieved metadata. Default ..
--format <table|json>Output format. Default table.

Exit codes​

CodeMeaning
0Nothing to clean up.
1At least one unused candidate was reported.
2Error (unscannable path, unknown --format).