Is it safe to delete Haskell Stack?

~/.stack · Check first

What it is

Stack's GHC installs, package snapshots and indexes.

Can you delete it?

Sometimes, check what is inside first. Everything comes back on the next build, but GHC versions are large downloads.

How to clean it safely

  1. Delete old GHC versions under programs and old snapshots.
  2. Or delete ~/.stack entirely and let stack rebuild.

How big is it on your Mac?

This read-only command prints its size and changes nothing:

 Terminal
du -sh ~/".stack" 2>/dev/null

Step-by-step guide: Developer caches on a Mac →

Questions

Is it safe to delete ~/.stack?

Sometimes, check what is inside first. Everything comes back on the next build, but GHC versions are large downloads.

Let the raccoon do it, safely

Junk Raccoon finds this clutter for you, shows every file first, and keeps a one-click way back. Free to download, no account, no ads.

Download for Mac