find_unused
Identify orphan files that no other file imports, providing candidates for deletion. Uses static import graph to return paginated results; excludes entry points from deletion suggestions.
Instructions
List files that no other file imports — orphan candidates for deletion. Prefer this over manual Glob + Grep cross-referencing — Reflex answers from the static import graph in one call. Returns {pagination, results: ["src/unused.rs", "tests/old.rs", ...]}. Default page size 200; if pagination.has_more is true, fetch the next page with offset. Note: entry points (main.rs, index.ts) appear as unused by design — do not delete them. Only static imports are considered. On "Index not found" / "stale" error, call index_project, then retry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of unused files per page (default: 200) | |
| offset | No | Pagination offset (skip first N files). Use with limit for pagination. |