# Delete Dialog Box

When you want to delete a file in a project the IDE displays the following options.

Element | Description
--- | ---
Safely delete (with usage search) | Select this option to search your project for all usages of the file before you delete it.
OK | Click to delete the file without searching for usages. This button is enabled only if you do not select Safely delete.
Preview and Refactor | Click either button to view a list of Warnings and Errors. These buttons appear if you select Safely delete. This panel is inherited from Java safe delete, which behaves differently. This is why there are two buttons, Preview and Refactor, that do the same thing.
List of Errors | Displays a list of warnings and errors. If the IDE finds any errors, you cannot delete the file until the errors are resolved. You can delete the file if there are only warnings.
Show Usages | Click to open the Usages window to view all occurrences of the file in the project.
Refactor | Click to delete the file. This button is enabled only if no errors are found.

Related Topics

Developing Applications with NetBeans IDE,

Copyright © 2016, Oracle and/or its affiliates. All rights reserved.