Last active
November 23, 2022 17:40
-
-
Save paulcarroty/5eda5610d087550997e698a45d542fa9 to your computer and use it in GitHub Desktop.
Wipe Github Actions VM completely when you need more space
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# docker stop `docker ps -qa` ; docker rm `docker ps -qa` & docker rmi -f `docker images -qa ` & docker volume rm $(docker volume ls -qf) & docker network rm `docker network ls -q --filter type=custom` | |
# sudo apt -y purge ghc* azure-cli google-cloud-sdk hhvm google-chrome-stable firefox dotnet* *jdk* *llvm* gcc-10 gcc-9 gcc-8 powershell moby-containerd snapd *php* *ruby* *mysql* moby* mono* mongodb* podman r-base* buildah mecab* kubectl libicu-dev containernetworking-plugins skopeo *dev rust* | |
# sudo rm -rf /opt /var/lib/gems /var/lib/mysql /var/lib/waagent /var/log /home/linuxbrew /root/.cache /usr/share/{dotnet,swift,rust,miniconda} /usr/local/lib/android /usr/local/graalvm & | |
# In the end ~70GB will be available. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment