IntelliJ IDEA 2016.1 Help

Removing Modules from a Project

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.