To refactor with the Safely Delete function, first, select the name of the variable or function you want to delete in the editor, then go to [Edit] > [Refactor] > [Safe Delete] or right-click in the editor.
When you run the function, the entire project is searched for the name of the selected variable or function.
If it is not used anywhere, the search result will not appear.
If it is used, the editor contents of the location where the variable or function is used will be displayed as the search result at the bottom [search] tab.