iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
🐙

How Flutter Engineers Can Free Up Storage Space on Mac

に公開
2025/06/12

Introduction

When developing with Flutter on Mac, you may run out of storage space. In this article, I will introduce how to delete unnecessary files and methods to prevent storage shortages.

Delete Old Flutter SDKs

The Flutter SDK is several gigabytes in size, and installing multiple versions can consume significant space.
SCR-20230405-dat

For asdf users, delete unnecessary versions under the .asdf/installs/flutter directory.
SCR-20230405-dlp

To delete via command:

Check installed versions
asdf list flutter
```text

```zsh:Uninstall
asdf uninstall flutter version

You can also delete unnecessary files related to Xcode. The following article is easy to understand for details.

https://dev.classmethod.jp/articles/remove-xcode8-related-unnecessary-files/

In this article, I will introduce apps that allow you to delete them easily.

DevCleaner

DevCleaner is an app that can easily delete the unnecessary files introduced in the previous article.
It's very easy because you don't have to remember which files can be deleted 🥳

https://twitter.com/_mono/status/1154556552637865984?s=20

It can be installed from the App Store.
https://apps.apple.com/app/devcleaner/id1388020431

Xclean

Xclean stays in the menu bar and allows you to delete Derived Data.
It seems to support Derived Data among unnecessary files 👀

It might be good to use them for different purposes: delete Derived Data regularly with Xclean, and use DevCleaner for everything else only when updating Xcode, etc.

https://twitter.com/iori_eth/status/1643266134668632064?s=20

SCR-20230405-ukn

Since it doesn't seem to be on the App Store, download and use the latest zip from the release assets.
https://github.com/macmade/Xclean/releases

Checking Storage Capacity

This app is useful for checking other files that can be deleted.

DaisyDisk

DaisyDisk is an app that displays a detailed breakdown of your storage. It is much easier to see than the Mac Settings app.
If you want to delete unnecessary files more thoroughly, it might be worth buying. (I found myself impulsively purchasing it before I knew it.)

https://twitter.com/_mono/status/1643412804337274881?s=20

If you click on a section with a large area, you can see the Flutter installation part mentioned at the beginning 👀
You can visually find unnecessary files in an easy-to-understand way and delete them immediately.

SCR-20230405-vfi

You can download a trial version from the official page.
https://daisydiskapp.com/

You can purchase it from the official page or from the App Store.
https://apps.apple.com/jp/app/daisydisk/id411643860?mt=12

Summary

I have introduced some tips for when you want to free up storage space on your Mac.

GitHubで編集を提案

Discussion