To delete resource safely
Position the caret at the name of resource in code file:
or in .resx file:
On the main menu, choose
ReSharper | Refactor | Safe Deleteor press Alt+Delete.
- If there are no usages of this resource in code files, the refactoring is applied and resource declarations are removed from all .resx files.
If there are usages of this resource in code files,
Safe Delete Resourcedialog box opens:
Nextto apply the refactoring.If ReSharper finds usages of resource in code files, but you still apply the Safe Deleterefactoring, pay attention, that the resource declaration is deleted from .resx files, while resource usages are left intact.