Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I delete these build folders when I am not running Android Studio?

Tags:

I am backing up android studio projects in google drive and I found that the build folders contain thousands of files, so google drive ends up tired.

My practice is that I run the 'clean project' command in Android Studio before exiting so that the unnecessary files are cleaned and only the important files remain to be backed up. But still sometimes the build folder remains there with many files.

My question is that if I delete these two build folders manually (see screenshot), will my project rebuild again on next startup, or will it mess up my project?

Two build folders

like image 708
Usman Avatar asked Sep 24 '17 12:09

Usman


2 Answers

will my project rebuild again on next startup

Yes. For situations where backups are expensive in terms of space, time, or money, follow the rules for what goes into version control (e.g., git), and back up only those things.

like image 57
CommonsWare Avatar answered Oct 17 '22 23:10

CommonsWare


If you are using a unix based OS you might be able to run following command using terminal:

 find . -name build -exec rm -rf {} \; 

which causes to delete all build folders inside a specific folder.

like image 34
MohammadReza Avatar answered Oct 18 '22 00:10

MohammadReza