reset_index
Delete a project's symbol index to reset or fix corrupt databases. Use dry-run before confirming, then re-index with fw-context index.
Instructions
Delete the entire symbol index for a project.
Not read-only — permanently deletes the SQLite database and WAL files.
Call with confirm=False first (dry-run) to see what would be deleted.
Re-index with fw-context index afterwards.
Handles corrupt databases gracefully — you can delete a corrupt index without needing to open it first.
Args: project_root: Project root directory. Auto-detected if omitted. confirm: Must be True to execute. Call without first as dry-run.
Returns: dict: {project_root, db, project_id, action: "dry_run"|"deleted", message, symbol_count, indexed_at (dry-run)}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Must be True to execute. Call without confirm first as dry-run. | |
| project_root | No | Project root. Auto-detected if omitted. |