You can remove unnecessary modules from your project. However, the files and folders that make up the corresponding modules are not physically deleted. Thus, the modules you have removed from a project can later be added to the same or a different project.

To remove a module, you can use the Project tool window or the Project Structure dialog.

Removing a module in the Project tool window
  1. Open the Project tool window (e.g. View | Tool Windows | Project).
  2. Select the module to be removed.
  3. Do one of the following:
    • Select Remove Module from the context menu.
    • Select Edit | Remove Module.
    • Press Delete.
Removing a module in the Project Structure dialog
  1. Open the Project Structure dialog (e.g. Ctrl+Shift+Alt+S).
  2. In the left-hand pane, under Project Settings, select Modules.
  3. In the pane to the right, select the module to be removed.
  4. Do one of the following:
    • Click delete.
    • Select Delete from the context menu.
    • Press Delete.
  5. Click OK in the Project Structure dialog.