Skip to content

Instantly share code, notes, and snippets.

@bash99
Created November 10, 2024 11:16
Show Gist options
  • Save bash99/22515059f91a0384504668e1126b963a to your computer and use it in GitHub Desktop.
Save bash99/22515059f91a0384504668e1126b963a to your computer and use it in GitHub Desktop.
Delete Aliyun Trash for debian 12 images
#!/bin/sh
# modified base on kxn's scripts https://github.com/kxn/scripts/blob/master/CentOS/remove-aliyun-trash.sh
cd /tmp
wget http://update.aegis.aliyun.com/download/uninstall.sh
chmod +x uninstall.sh
./uninstall.sh
wget http://update.aegis.aliyun.com/download/quartz_uninstall.sh
chmod +x quartz_uninstall.sh
./quartz_uninstall.sh
pkill aliyun-service; rm -f /etc/systemd/system/aliyun.service ; systemctl daemon-reload
pkill assist_daemon; rm -f /etc/systemd/system/AssistDaemon.service; systemctl daemon-reload
rm -rf /usr/local/share/aliyun-assist /usr/local/share/assist-daemon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment