There was this time my Macbook was completely out of storage and when I used cleanMyMac to investigate, I realised the culprit was the build folders in Flutter projects. After deleting a number of them, I had some extra space. https://twitter.com/_ia...

Markdown supported · ⌘↵ to post
A universal script that deletes such extraneous files/directories for other projects would be great.
Another enhancement will be to make it interactive to prompt on which projects it should delete. Something like delete all build folders for all projects except project_1 and my_app.
Great write up
Parables Boltnoel
PS: a config file like
.rmcleanat the root of the project which specifies which directories and files should be deleted will ease this process.In this case, the script scans for all directories that have this config file
.rmcleanand uses the content of the.config file to delete those files.In the absence of this config file the script can be smart enough to guess the project type and use smart defaults to determine which directories to delete but it should prompt before executing unless explicitly executed with a flag like
-f | --force.This can also be executed as part of CI/CD process.