How to delete a module in Android Studio
During my lifetime developing in Android Studio I never knew how to delete a module… when “Right clicking” the module it never gave me the option to delete. That’s why I started to google and share this insight with all of you.
Step #1
Right click on the Project and select “Open module settings”
Step #2
Select the module you want to delete and press the minus button above.

Step #3
Step #4
Congrats, you don’t have the module anymore. There package will still be there but when you Right click now the delete option will appear!
Developer's notes
no warranties of usability, information is not complete, use on your own risk
How to delete module from Android Studio?
Step 1. Unload module from project
Unloading module from Android Studio.
Selecting modules for unloading from Android Studio.
Step 2. Remove module from project

Removing module from project.
Step 3. Delete module from file system

Deleting module from file system.
Step 4. Delete module from Gradle settings

Updating Gradle settings.
After editing the file click “Sync” in popup panel to synchronize Gradle settings.
Как удалить модуль в Android Studio
Есть ли способ удалить модуль в Android Studio? Когда я нажимаю правой кнопкой мыши на модуль, я не могу найти вариант для удаления, это где-то еще?
15 ответов
Опция «Отметить как исключение» больше не существует.
Текущий (Android Studio 0.8.x — 2.2.x) способ сделать это через диалог Структура проекта. Доступ к нему можно получить через «Файл → Структура проекта» или щелкнув правой кнопкой мыши по модулю и выбрав «Настройки модуля».

Затем выберите модуль и нажмите кнопку «минус», чтобы удалить его.

Каталог будет по-прежнему отображаться в представлении «Проект» (хотя и не в представлении «Android» ), поскольку он фактически не удаляется, но он больше не будет рассматриваться как модуль.
Если вы хотите, вы можете физически удалить файлы, щелкнув правой кнопкой мыши и нажав «Удалить».
(Примечание редактора: этот ответ был правильным в мае 2013 года для Android Studio v0.1, но с июля 2014 года он более не точен, так как упомянутый параметр меню больше не существует — см. этот ответ для актуальной альтернативы).
Сначала вы должны будете пометить его как исключенный. Затем, щелкнув правой кнопкой мыши, вы сможете удалить проект.


В Android Studio 1.0 — 1.1b4 я нашел, что это самый простой способ удалить модуль:
Откройте settings.gradle , найденный в Gradle Скрипты
Удалить имя модуля из оператора include
Синхронизировать проект с Gradle файлами
Необязательно удалите его вручную из папки проекта
Старый:
New:
Как я увидел, что в Android Studio 0.5.1 вам нужно закрыть проект, просто сделав File → Close Project, затем наведите указатель мыши на проект, который вы хотите удалить, затем держите мышь в том же проекте и нажмите затем нажмите кнопку «ОК», чтобы удалить проект из Android Studio.


В Android studio v1.0.2
Перейдите к структуре проекта, File -> Project Structure. , как показано на следующем рисунке, нажмите значок — , чтобы удалить модуль. 
Отредактируйте файл settings.gradle и удалите запись, которую вы собираетесь удалить. например отредактируйте файл с include ‘:app’, ‘:apple’ до include ‘:app’ .
Это будет работать в большинстве ситуаций, однако, наконец, вы должны удалить модуль с диска вручную, если вам это больше не нужно.
Вот для Android studio 2.3.3 Я не нашел ни одной структуры проекта в меню » File . Итак, вот шаги в картинках




Удаление — такая головная боль. Я отправляю решение для Android Studio 1.0.2.
Шаг 1: Щелкните правой кнопкой мыши по названию проекта, выбранному из иерархии папок, как показано. Примечание: его также можно удалить из Commander View с правой стороны окна, щелкнув правой кнопкой мыши имя проекта и выбрав удаление из контекстного меню.

Шаг 2: проект удален (по-видимому), но gradle, похоже, сохраняет запись о папке приложения проекта (проверьте ее, щелкнув по gradle View). Теперь перейдите в Файл- > Закрыть проект.
Шаг 3: Теперь вы находитесь в стартовом окне. Переместите курсор в списке последних проектов. Нажмите Удалить.
Шаг 4: Удалите папку из проводника, перемещая или удаляя ее на самом деле. Это местоположение находится в вашем_user_name- > Android Studio Projects → .
Шаг 5: Вернитесь в окно студии Android, и проект ушел навсегда. Теперь вы можете запустить новый проект.
How to delete a module in Android Studio
Is there a way to delete a module within Android Studio? When I right click on a module I can’t find an option for deletion, is it elsewhere?
![]()
20 Answers 20
The «Mark as Excluded» option isn’t there anymore.
The current (Android Studio 0.8.x — 2.2.x) way to do this is via the Project Structure dialog. It can be accessed via «File -> Project Structure» or by right-clicking on a Module and selecting «Module Settings».

Then select the module, and click the «minus» button to remove it.

The directory will still be visible in the «Project» view (though not in the «Android» view) since it’s not actually deleted, but it will no longer be treated as a module.
If you want, you can then physically delete the files it by right-clicking on it and pressing «Delete».
(Editor’s Note: This answer was correct in May 2013 for Android Studio v0.1, but is no longer accurate as of July 2014, since the mentioned menu option does not exist anymore — see this answer for up-to-date alternative).
First you will have to mark it as excluded. Then on right click you will be able to delete the project.


![]()
In Android Studio 1.0 — 1.1b4, I found this to be the easiest way to remove a module:
Open settings.gradle found under Gradle Scripts
Delete module’s name from the include statement
Sync Project with Gradle Files
Optionally, delete it manually from the project folder
Old:
New:
![]()
As I saw that in Android Studio 0.5.1, you have to close your project by doing simply File -> Close Project then move your mouse over the project which you want to delete then keep your mouse on the same project and press delete then click on «OK» button that would delete your project from Android Studio.


![]()
In Android studio v1.0.2
Go to project structure, File -> Project Structure. , as the following picture show, click — icon to remove the module.
Edit the file settings.gradle and remove the entry you are going to delete. e.g. edit the file from include ‘:app’, ‘:apple’ to include ‘:app’ .
That will work in most of the situation, however finally you have to delete the module from disk manually if you don’t need it anymore.
If you want to delete manually (for me it was easier), follow this:
Let’s get this example with «teste».
1 — First change the explorer to «project» and open «settings.gradle»;

2 — Delete the module you want;

3 — Go to your root folder of your project and delete the module folder.

Here is for Android studio 2.3.3 I did not find any Project Structure under File menu. So here are steps in pictures



Step-1: Right Click on Project—>Open Module Option 
Step-2: Click Your Module —> click (-)sign done on Top Left in PopUp, then press ok button. 
Step-3: After removing module from the project 
Step-4: Again do right-click in Project, Select Delete menu to Remove whole content from Disk space(i.e.folder). 
Step-5: Delete the content of the module from the disk by clicking done. 
![]()
Deleting is such a headache. I am posting the solution for Android Studio 1.0.2.
Step 1: Right click on the «Project Name» selected from the folder hierarchy like shown.
Note: It can also be deleted from the Commander View from right hand side of your window by right clicking the project name and selecting delete from the context menu.

Step 2: The project is deleted(seemingly) but gradle seems to keep the record of the project app folder(Check it by clcking on the Gradle View). Now go to File->Close Project.
Step 3: Now you are at the start window. Move the cursor on the in recent project list. Press Delete.
Step 4: Delete the folder from the explorer by moving or deleting it actually. This location is in your_user_name->Android Studio Projects->.
Step 5: Go back to the Android studio window and the project is gone for good. You can start a new project now.