(the original article link http://blog.csdn.net/hyr83960944/article/details/37519299 written by the author very well, so I only modified some wording)
When you want to delete a module in Android studio, it's customary to select the module you want to delete and right-click to find the delete. But
In Android Studio you select module, right-click to find no delete,
Why there is no delete button, unscientific Ah, is not the bug in Android studio or the design team is poorly considered. Actually, there's no Delete button. The main reason is because Android Studio has a protection mechanism for module, is a module you can not be arbitrarily deleted, to delete you must first remove the module from the module list.
There are two ways to remove:
1, we click on the menu just shown open module Setting (F12) Select the module you want to remove, and then press the red '-' button, this is only to remove the module from the module list, and not on the Android Removed from the studio directory structure:
2, direct editing settings.gradle, of course, this method is not very recommended, because sometimes you will find that you finished editing, point sync gradle (circled in the picture), of course, there will be automatic sync, will always be in Gradle sync State, This is actually the problem of the network. Again, this still does not delete the item in the As directory structure.
After performing this step, the Delete button is out,
At this point you will find that the little phone on the app icon is gone, meaning it was removed from the module list.
Note: The data in the hard drive will be deleted after delete, please be careful.
How Android studio removes module