Safe Delete Dialog Box

See Also

Use this dialog box to specify options for the Safe Delete refactoring command. You can use the Safely Delete command to have the IDE check to make sure that the code element that you want to delete is not being used by other code. If the code element is not used, the IDE deletes the code element.

You can open the Safe Delete dialog box by choosing Refactor > Safely Delete after you have selected a code element in the Source Editor, Projects window, or Files window.

The dialog box has the following fields:

If you want to preview the changes, you need to follow these steps to complete the refactoring:

  1. Click Preview.

    The Refactoring window opens and displays a tree view of the code to be affected by the refactoring.

  2. Check the items displayed in the Refactoring window to make sure that you want them all changed. Clear the checkbox next to any parts of the code that you do not want changed.
  3. Click Do Refactoring.
See Also
Refactoring: Quick Reference
About Refactoring
Undoing Refactoring Changes

Legal Notices