ReSharper Web Help

If you are going to delete a type, type member, or any other symbol in C# or VB.NET code files, ASP.NET code and markup, build scripts, or XAML, use the Safe Delete refactoring to ensure that the delete operation is safe. If there are no symbol usages found, the symbol will be deleted right away. Otherwise, ReSharper will show all the usages, allowing you to edit the corresponding code. Usages that can be safely deleted are marked with the Warning icon. Removing usages marked with the Error icon, will lead to compilation errors.

To safely delete a symbol
  1. Position the caret at the name of a symbol that you want to delete.
  2. Choose ReSharper | Refactor | Safe Delete, or press Alt+Delete. The Safe Delete dialog box opens:
    Safe Delete refactoring
  3. Click Next. If no usages of the symbol are found, the symbol is deleted immediately. If ReSharper finds usages, it shows the Conflicts page:
    Safe Delete refactoring
  4. Click links to view symbol usages and modify them.
  5. Click Next to delete the symbol.

See Also