The basement directory contains all the packages that are installed by homebrew. However, it also contains all the versions that you have installed.
You can run brew cleanup to remove old versions of packages to clear some space.
Dimitri jorge
source share