Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App

Related Articles

Different Ways to Delete a Module in Android Studio

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

We all know that Android Studio is one of the most famous IDE (Integrated Development Environment) out there. It is available for download on Windows, macOS, and Linux-based operating systems or as a subscription-based service in 2020. It is a replacement for the Eclipse Android Development Tools (E-ADT) as the primary IDE for native Android application development. Android Studio offers many features that enhance your productivity and makes your app-making experience more user-friendly and easy. 

Why There is a Need to Delete a Module in Android Studio?

Deleting a module is necessary to save storage space and make the android studio more efficient. Modules take up unnecessary storage and make the process difficult. But, instead of giving you an easy-shortcut method of pressing the delete key on your keyboard, you have to follow certain steps,  which, in this article, I am going to show you how can we do the same. So in this article, we are going to discuss three different methods to Delete a Module in Android Studio.

Method 1

Step 1: Firstly, Go to the project section on the left-hand side of the android studio. Then, right-click on your project window list and select Open Module Settings from the menu. (as shown in the image given below).

Step 2: Then select the module which is present in your project which you have selected, to delete. n the top left-hand side of the window, you will see a minus sign button, Click on it and press yes to delete the module. (Refer to the screenshot given below)

Since this will only remove the Module from Android Studio, you have to physically delete the files from the file system. (Told you it is a cumbersome process). That’s it.

Method 2

Go to the settings.gradle under Gradle scripts under the project section.

Delete the module’s name from the include statement. Sync project with Gradle files. Optionally, Delete it manually from the project folder. (Just like before)

For Example:

Old: include ‘:app’, ‘:green’

New: include ‘:app’

Method 3

Another method which you can use to achieve the same are as follows:

Step 1: First, go to the project section on the left-hand side of the Android studio.

Step 2: Right-click on the project whose module you want to delete and go to the option of Load/Unload modules. Click on the module which you want to delete and click on unload button.

Step 3: Then back at the project section, right-click on the module and go to the remove module option, and press yes.

My Personal Notes arrow_drop_up
Last Updated : 07 Mar, 2021
Like Article
Save Article
Similar Reads
Related Tutorials