We need to talk seriously, instead of closing our eyes to this time after time. Am I understanding correctly that in the entire ten-year history of Android Studio we still haven't gotten an adequate way to delete a module in a project?
I specifically went and launched Idea and compared, so as not to look like a complete idiot now. In Android Studio we select a module, press Delete, nothing happens. At all. In Idea we press Delete - nothing happens at the file level, but the module icon disappears from the folder, after which a repeated Delete deletes all files. ✏️
To delete a module with us, you need to delete the line in settings.gradle, resync and delete the folder. In my opinion this is the most straightforward way, I've been using it all these years. Or a bit more complicated: go to the file explorer, delete the folder there, after which fix settings.gradle and resync as a result.
The problem is even bigger when we're not talking about modules, but about some "special" folders. For example source sets androidTest and test. There it seems like there's no alternative at all, I go to the file explorer to delete in absolutely all cases.
While writing this, by the way, I realized there's an alternative in the form of Mark Directory As → Excluded, so that the IDE stops holding onto these files and lets you delete them. But this is still some absolutely unnecessary action. What prevents me from just deleting all selected files recursively? After all, there must be some explanation. There is, right? I'm not even asking you to delete the module name from settings.gradle for me, just don't prevent me from managing my files.
If I'm totally blind, don't see the obvious and am completely wrong, then put the clown and help me in the comments find a better solution, I honestly don't know. 🤡
r/mAndroidDev once again brought something to think about.