Your AndroidStudioProjects folder is probably a graveyard of abandoned apps right now.
Test projects, failed experiments, tutorial leftovers. They pile up fast and eat through your disk space.
Learning how to delete a project in Android Studio properly matters because the IDE doesn’t have a simple “Delete Project” button. You need to remove files from multiple locations.
This guide walks you through the complete removal process: closing the project, clearing IDE references, deleting files from disk, and cleaning up Gradle cache remnants.
Takes about 3 minutes. Works on Windows, macOS, and Linux.

How to Delete a Project in Android Studio
Deleting a project in Android Studio is the process of removing project files, folders, and IDE references from your development workspace.
You need this when old test apps, abandoned prototypes, or failed experiments clutter your system and consume disk space.
This guide covers 5 steps requiring about 2-3 minutes and basic file system knowledge.
The process involves closing the project, removing it from the recent projects list, locating files on disk, and manually deleting the project folder along with related cache files.
Prerequisites
Before you start, make sure you have the following ready:
- Android Studio installed (any version from 4.0 onwards)
- Windows 10/11, macOS 10.14+, or Linux with file manager access
- Administrator or standard user file permissions
- 2-3 minutes of time
- Skill level: Beginner
If you’re new to the IDE, check out what Android Studio is before proceeding.
No coding knowledge required. Just basic navigation through your operating system’s file explorer or Finder.
Step One: How Do You Close the Project in Android Studio?
Click File in the top menu bar, then select Close Project from the dropdown menu; this returns you to the Welcome screen and releases file locks on your project directory.
Action
- Path: File > Close Project
- Keyboard shortcut: None by default
- Result: IDE displays the Welcome to Android Studio screen
Purpose
Closing prevents the Gradle daemon and other background processes from locking your files.
Locked files cause “Access Denied” errors during deletion on Windows.
Step Two: How Do You Remove the Project from the Recent Projects List?
On the Welcome screen, hover over the project name in the Recent Projects panel on the left side, then click the X icon that appears to remove the reference from Android Studio’s memory.
Action
- Location: Welcome Screen > Recent Projects panel
- Alternative path: File > Open Recent > Manage Projects
- Result: Project disappears from the list
Purpose
This only removes the IDE reference. Your actual project files still exist on disk.
The Welcome screen stores paths in a configuration file called recentProjects.xml, and clicking X updates this file.
If you’re working with version control, consider reviewing your source control setup before permanent deletion.
Step Three: Where Do You Find the Project Folder on Your Computer?
Your project folder lives in the AndroidStudioProjects directory by default, though you might have saved it to a custom location during project creation.
Default Paths by Operating System
- Windows: C:Users[Username]AndroidStudioProjects
- macOS: /Users/[Username]/AndroidStudioProjects
- Linux: /home/[Username]/AndroidStudioProjects
Finding Custom Locations
Forgot where you saved it? Open Android Studio, go to File > Settings > Appearance & Behavior > System Settings > Project, and check the default project directory.
You can also search your file system for the project name or look for folders containing build.gradle files.
Purpose
Knowing the exact location matters because Android Studio doesn’t provide a built-in “Delete from Disk” option in most versions.
Manual file system deletion remains the standard approach for complete project removal in Android development.
Step Four: How Do You Delete the Project Files from Disk?
Open File Explorer (Windows) or Finder (macOS), navigate to your AndroidStudioProjects folder, right-click the project folder, and select Delete or Move to Trash.
Action
- Windows: Right-click folder > Delete (or Shift+Delete for permanent removal)
- macOS: Right-click folder > Move to Trash (or Cmd+Delete)
- Linux: Right-click folder > Move to Trash (or rm -rf via Terminal)
What Gets Deleted
The project folder contains your app source code, res folder with layouts and drawables, Gradle build scripts, the .idea directory, and AndroidManifest.xml.
Average project size ranges from 50MB to several gigabytes depending on dependencies and build outputs.
Purpose
This permanently removes your codebase from disk and frees up storage space consumed by compiled APK files, debug builds, and cached dependencies.
Step Five: How Do You Clear Related Cache Files?
Delete leftover Gradle cache and global IDE files that persist even after removing the project folder; these accumulate over time and waste disk space.
Cache Locations
- Gradle cache (Windows): C:Users[Username].gradlecaches
- Gradle cache (macOS/Linux): ~/.gradle/caches
- Android Studio cache: ~/.android (contains AVD and SDK caches)
Action
Open the .gradle folder in your user directory, locate the caches subfolder, and delete project-specific entries or the entire caches folder for a clean slate.
Android Studio rebuilds necessary caches automatically on next project sync.
Purpose
Gradle caches can grow to 10GB+ across multiple projects; clearing them after deletion recovers significant disk space without affecting other projects.
Verification
Confirm the deletion worked correctly with these checks:
- Reopen Android Studio; project should not appear in Recent Projects
- Navigate to AndroidStudioProjects folder; project folder should be gone
- Check disk space in system settings to verify storage recovery
- Search your file system for the project name; no results should appear
If the project still shows in Recent Projects, the recentProjects.xml file may need manual editing or an IDE restart.
Troubleshooting
Issue: File Permission Error
Solution: Right-click the project folder, select Properties (Windows) or Get Info (macOS), check the Permissions tab, and ensure your user account has read/write access.
On Linux, run chmod -R 755 [project-folder] before deletion.
Issue: Project Folder Locked
Solution: Open Task Manager (Windows) or Activity Monitor (macOS) and terminate any java.exe, gradle, or adb processes still running.
The Android Studio emulator commonly locks files; close all emulator instances before attempting deletion.
Issue: Project Still Appears in Recent List
Solution: Navigate to your Android Studio config folder and locate recentProjects.xml.
- Windows: C:Users[Username].AndroidStudio[version]configoptionsrecentProjects.xml
- macOS: ~/Library/Application Support/Google/AndroidStudio[version]/options/recentProjects.xml
Open the XML file in a text editor, find your project entry, delete it, save, and restart the IDE.
Issue: Gradle Daemon Prevents Deletion
Solution: Open Terminal or Command Prompt and run ./gradlew --stop from any project directory to kill all Gradle daemon processes.
Alternative Methods
Method: Using Command Line
Delete projects faster using terminal commands without navigating through File Explorer.
- Windows (PowerShell):
Remove-Item -Recurse -Force "C:Users[Username]AndroidStudioProjects[ProjectName]" - macOS/Linux:
rm -rf ~/AndroidStudioProjects/[ProjectName]
Comparison
| Method | Time | Complexity | Best For | | — | — | — | — | | Manual (File Explorer) | 2-3 min | Beginner | Single project deletion | | Command Line | 30 sec | Intermediate | Batch deletion, automation |
Use command line when deleting multiple projects or automating cleanup scripts as part of your software development process.
Related Processes
After cleaning up old projects, you might need these related guides:
- How to rename an Android Studio project instead of deleting and recreating
- How to update Android Studio for better project management features
- How to sync Gradle when starting fresh projects
- How to build APK files before deleting source projects
Consider using source control management with Git or GitHub to backup valuable code before permanent deletion.
Understanding the app lifecycle helps you decide when projects are truly ready for removal versus archiving.
FAQ on How To Delete A Project In Android Studio
Does removing a project from Recent Projects delete it from my computer?
No. Clicking the X on the Welcome screen only removes the IDE reference. Your project folder, source code, Gradle files, and build outputs remain untouched on disk. You must manually delete the folder through File Explorer or Finder.
Where is the AndroidStudioProjects folder located?
Default location on Windows: C:Users[Username]AndroidStudioProjects. On macOS: /Users/[Username]/AndroidStudioProjects. On Linux: /home/[Username]/AndroidStudioProjects. Check File > Settings > System Settings if you used a custom directory during project creation.
Can I recover a deleted Android Studio project?
Only if you have backups. Use Git repositories on GitHub or local version control before deletion. Without backups, try disk recovery tools like EaseUS or Recuva immediately. The longer you wait, the lower recovery chances become.
Why can’t I delete my project folder? It says files are in use.
The Gradle daemon or emulator processes are locking files. Close Android Studio completely, open Task Manager or Activity Monitor, terminate any java.exe or adb processes, then retry deletion. Running ./gradlew --stop helps too.
Should I delete the .gradle folder when removing a project?
The project’s local .gradle folder gets deleted with your project. The global ~/.gradle/caches folder is shared across all projects. Clear it periodically for cache cleanup, but it rebuilds automatically on next sync.
How do I delete multiple projects at once in Android Studio?
Android Studio lacks batch deletion. Use File Explorer to select multiple project folders and delete simultaneously. Or use command line: rm -rf ~/AndroidStudioProjects/Project1 ~/AndroidStudioProjects/Project2 on macOS and Linux for faster cleanup.
Will deleting a project affect my Android SDK or emulator?
No. The Android SDK and AVD emulator images are stored separately in the .android folder. Deleting projects only removes project-specific files. Your SDK tools, system images, and virtual devices remain intact and functional.
How do I delete a module instead of the entire project?
Right-click the module in Project view, select Open Module Settings, choose the module, and click the minus icon. Then manually delete the module folder from disk. Using Android Studio this way keeps other modules safe.
What’s the difference between Close Project and Delete Project?
Close Project returns you to the Welcome screen while keeping all files on disk. Android Studio has no built-in Delete Project option. You must close first, remove from Recent Projects, then manually delete files through your operating system.
How much disk space will I recover after deleting a project?
Depends on project size. Small apps: 50-200MB. Projects with many dependencies and build variants: 1-5GB. The build folder alone often exceeds 500MB. Check folder size before deletion in Properties (Windows) or Get Info (macOS).
Conclusion
You now know how to delete a project in Android Studio the right way. Close the project, remove IDE references, delete the project directory from disk, and clear leftover cache files.
The whole process takes under 3 minutes. Your development workspace stays organized, and you recover valuable storage space.
Remember that Android Studio stores project files separately from your SDK tools and emulator images. Deleting one project won’t break anything else.
Before permanent removal, consider pushing important code to Git or creating a backup. Once files leave your file system, recovery becomes difficult.
Keep your mobile application development environment clean. Regular project cleanup improves IDE performance and makes workspace navigation faster.
Following software development best practices includes proper project management, and that means removing outdated projects when they no longer serve a purpose.
- CSS Cheat Sheet - May 18, 2026
- How to Set Up VSCode for Python Development - May 16, 2026
- How Using One Platform Can Simplify Order Fulfillment - May 15, 2026



