safe_delete
Delete a named declaration safely by refusing if still referenced, preventing orphaned call sites. Preview by default; set apply=true to write to disk.
Instructions
Delete a named declaration — USE INSTEAD OF Edit-deleting it; REFUSES while still referenced (lists the refs, force=true overrides) so a delete can't silently orphan call sites. PREVIEW by default; apply=true writes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | No | 0-based line; disambiguate same-named (optional). | |
| path | No | File holding the symbol (else resolved via the index). | |
| apply | No | Write to disk (default false = preview). | |
| force | No | Delete even if referenced (default false = refuse). | |
| symbol | Yes | Declaration to delete. | |
| backend | No | ||
| maxResults | No | ||
| projectPath | No |