Update cleanup.sh

- Remove /opt/az
- Cleanup python runtime cache

Signed-off-by: rokibhasansagar <rokibhasansagar2014@outlook.com>
This commit is contained in:
Rokib Hasan Sagar 2021-01-30 20:10:30 +06:00 committed by rokibhasansagar
parent 972234e1a2
commit c6196ee0a5
No known key found for this signature in database
GPG key ID: 2A43163956D6C2A7

View file

@ -161,10 +161,12 @@ sudo npm list -g --depth=0. 2>/dev/null | awk -F ' ' '{print $2}' | awk -F '@[0-
sudo rm -rf -- /usr/local/lib/node_modules /usr/local/n &>/dev/null
pipx uninstall-all &>/dev/null
pip freeze --local | xargs sudo pip uninstall -y &>/dev/null
find /usr/share /usr/lib /snap ~/.local/lib -depth -type d -name __pycache__ -exec rm -rf '{}' + 2>/dev/null; &>/dev/null
sudo rm -rf -- \
/usr/local/bin/aws /usr/local/bin/aws_completer /usr/local/aws-cli \
/usr/share/az_* \
/opt/az \
/usr/share/dotnet \
/usr/local/graalvm \
/etc/mysql \