From 4ad54b225a31a05820c03178994a45795691480d Mon Sep 17 00:00:00 2001 From: rokibhasansagar Date: Mon, 4 Jan 2021 06:07:01 +0600 Subject: [PATCH] More Cleanups Signed-off-by: rokibhasansagar --- cleanup.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cleanup.sh b/cleanup.sh index 738e5dc..68a98e2 100755 --- a/cleanup.sh +++ b/cleanup.sh @@ -151,6 +151,10 @@ sudo -E apt-get -qq -y remove --purge \ printf "Removing Homebrew...\n" /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)" +sudo npm list -g --depth=0. | awk -F ' ' '{print $2}' | awk -F '@' '{print $1}' | sudo xargs npm remove -g 2>/dev/null +sudo rm -rf -- /usr/local/lib/node_modules /usr/local/n 2>/dev/null +pip freeze --local | grep -v -i pipx | xargs sudo pip uninstall -y + sudo rm -rf -- \ /usr/share/dotnet \ /etc/mysql \ @@ -161,7 +165,13 @@ sudo rm -rf -- \ /opt/hostedtoolcache/* \ /usr/local/julia* \ /usr/local/lib/android \ + /usr/share/gradle* \ + /usr/share/apache-maven* \ /usr/local/lib/lein /usr/local/bin/lein \ + /usr/share/rust \ + /usr/share/swift \ + /usr/share/miniconda \ + /usr/local/share/phantomjs* /usr/local/share/chrome_driver /usr/local/share/gecko_driver \ /home/linuxbrew \ 2>/dev/null