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.
- Open the Project tool window (e.g. ).
- Select the module to be removed.
-
Do one of the following:
- Select Remove Module from the context menu.
- Select Edit | Remove Module.
- Press ⌦, ⌫, ⌘⌫, ⌦, ⌫ or ⌘⌫⌦, ⌫, ⌘⌫, ⌦, ⌫ or ⌘⌫⌦, ⌫, ⌘⌫, ⌦, ⌫ or ⌘⌫Delete, ⌦ or ⌦Delete, ^ D, ⌦, ⌃D, ⌦ or ⌃D.
- Open the Project Structure dialog (e.g. ⌘; or ⌘;⌘; or ⌘;⌘; or ⌘;^ ⇧ ⌥ S, ⌃⌥⇧S or ⌃⌥⇧S^ ⇧ ⌥ S, ⌃⌥⇧S or ⌃⌥⇧S).
- In the left-hand pane, under Project Settings, select Modules.
- In the pane to the right, select the module to be removed.
-
Do one of the following:
-
Click
. - Select Delete from the context menu.
- Press ⌦, ⌫, ⌘⌫, ⌦, ⌫ or ⌘⌫⌦, ⌫, ⌘⌫, ⌦, ⌫ or ⌘⌫⌦, ⌫, ⌘⌫, ⌦, ⌫ or ⌘⌫Delete, ⌦ or ⌦Delete, ^ D, ⌦, ⌃D, ⌦ or ⌃D.
-
Click
- Click OK in the Project Structure dialog.