Deleting EJB 3.x beans
Once you have created an Enterprise Java™ bean, you might want to delete it. The instructions in this document describe the basic steps that you can take to delete the bean.
About this task
When you create an EJB project, code is generated in files as part of the process of creating the project. After you delete a module or a bean in a Java EE project, the affected files are also cleaned up. To delete a web module, EJB module, Application Client module, Connector module, or EJB client, or utility module:
Procedure
- Right-click the EJB project that you want to delete, and select Delete. Alternatively, you can select the module in the project view, and press Delete. A dialog box appears, confirming the delete.
- Select Preview. A refactoring page
appears listing the items affected by your delete action.
- To delete an individual bean from your EJB project, locate
the bean under your project folder, right-click the bean that you
want to delete, and select Delete. Alternatively,
you can select the bean in the project view, and press Delete.
A dialog box appears, confirming the delete.