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:
| Driver | Examples |
|---|---|
| Storage | Unused custom fields, reports, custom metadata types. |
| Deploy and package weight | Inactive validation rules, unused permission sets. |
| Maintenance debt | Orphaned 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.
| Flag | What it does |
|---|---|
[PATH] | SFDX project or retrieved metadata. Default .. |
--format <table|json> | Output format. Default table. |
Exit codes
| Code | Meaning |
|---|---|
0 | Nothing to clean up. |
1 | At least one unused candidate was reported. |
2 | Error (unscannable path, unknown --format). |