With cabal how to clean/remove project binaries

I have a cabal project and I have used cabal install command to install binaries.

Then I have changed the project name in the cabal file. Now I have artifacts in ~/.cabal/bin from the old project name:

lrwxr-xr-x  1     57 05-03 15:20 cleanheads@ -> ../store/ghc-9.2.5/clnhds-0.1.0.0-9b394d98/bin/cleanheads

and in ~/.cabal/store/ghc-9.2.5/:

drwxr-xr-x  4    128 05-03 15:20 clnhds-0.1.0.0-9b394d98/

What is the proper way to remove these artefacts? cabal clean does not work (even when it has the correct name).

Can I just remove these via rm? Or are there elsewhere leftovers as well?

1 Like

I rm symlinks (binaries if you have an older version of cabal) from ~/.cabal/bin and it works tip-top.

2 Likes