How to delete Library/Module in Android Studio?

android, android-layout, android-studio

Solution

Go to File -> Project Structure -> Dependencies -> Select library/module -> click minus(-) -> Confirm selection from alert.

Alternative

If the above solution does not work then try this:

firstly remove the library from your build.gradle file and then delete it from the project structure.

Problem

I am working on a project on Android Studio where I am using some libraries. But out of them one library/module is not of any use. Now I want to remove/delete that particular Module. But when I right clicked on that module no delete option shows. I then went to Android Project folder in my C Drive and deleted that module's folder. But still that empty module is showing in android studio. How to remove it totally??

Original source

Related problems