-
Notifications
You must be signed in to change notification settings - Fork 2
/
.remove-distro
216 lines (212 loc) · 6.19 KB
/
.remove-distro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
#!/bin/bash
R="\033[1;31m"
G="\033[1;32m"
Y="\033[1;33m"
PU="\033[1;34m"
PI="\033[1;35m"
B="\033[1;36m"
W="\033[1;37m"
BL="\033[1;30m"
SkyBlue="\e[38;5;111m"
Purple="\e[38;5;93m"
for ((i=1; i<=3; i++))
do
echo
done
banner() {
echo -e "\033[1;31m"
echo -e "\t _| _|_|_| _| _| _| _| _| _| "
echo -e "\t _| _| _|_| _| _| _| _| _| "
echo -e "\t _| _| _| _| _| _| _| _| "
echo -e "\t _| _| _| _|_| _| _| _| _| "
echo -e "\t _|_|_|_| _|_|_| _| _| _|_| _| _| "
for ((i=1; i<=4; i++))
do
echo
done
echo -e "\t _|_|_| _|_|_| _|_|_| _|_|_|_|_| _|_|_| _|_| "
echo -e "\t _| _| _| _| _| _| _| _| _| "
echo -e "\t _| _| _| _|_| _| _|_|_| _| _| "
echo -e "\t _| _| _| _| _| _| _| _| _|"
echo -e "\t _|_|_| _|_|_| _|_|_| _| _| _| _|_| "
echo
}
banner
echo -e "\t\t\t\t\t\t\t${B}Version 10.O\n"
echo -e "\t\a${SkyBlue}Code ${W}By ${Purple}Manjunath\n"
echo -e "\t${BL}[ ${G}1 ${BL}] ${R}Remove ${W}Ubuntu linux\n"
echo -e "\t${BL}[ ${G}2 ${BL}] ${R}Remove ${W}Debian linux\n"
echo -e "\t${BL}[ ${G}3 ${BL}] ${R}Remove ${W}Alpine linux\n"
echo -e "\t${BL}[ ${G}4 ${BL}] ${R}Remove ${W}Manjaro-aarch64 linux\n"
echo -e "\t${BL}[ ${G}5 ${BL}] ${R}Remove ${W}Arch linux\n"
echo -e "\t${BL}[ ${G}6 ${BL}] ${R}Remove ${W}OpenSuse linux\n"
echo -e "\t${BL}[ ${G}7 ${BL}] ${R}Remove ${W}Fedora linux\n"
echo -e "\t${BL}[ ${G}8 ${BL}] ${R}Remove ${W}Pardus linux\n"
echo -e "\t${BL}[ ${G}9 ${BL}] ${R}Remove ${W}Viod linux\n"
echo -e "\t${BL}[ ${G}10 ${BL}] ${R}Remove ${W}Kali linux\n"
echo -e "\t${BL}[ ${G}11 ${BL}] ${R}Remove The ${Y}All ${W}Linux Distro\n"
echo -e "\t${BL}[ ${G}12 ${BL}] ${R}Remove ${W}Artix Linux\n"
echo -e "\t${BL}[ ${G}13 ${BL}] ${R}Remove ${W}Deepin Linux\n"
echo -e "\t${BL}[ ${G}14 ${BL}] ${R}Remove ${W}Backbox Linux\n"
echo -e "\t${BL}[ ${G}15 ${BL}] ${R}Remove ${W}Parrot Linux\n"
echo -e "\t${BL}[ ${G}16 ${BL}] ${R}Remove ${W}Raspberrypi Linux\n"
echo -e "\t${BL}[ ${G}0 ${BL}] ${SkyBlue}Go-Back\n"
echo -e "\033[1;36m"
read -p "Enter The Linux Distro To Delete : " Re
echo
if [[ -z "$Re" || ! "$Re" =~ ^[0-9]+$ ]]; then
echo -e "\t${R}InvalidError : please Enter a valid Linux Distro Number..."
exit 1
fi
if [ $Re -eq 1 ]; then
clear
echo
proot-distro remove ubuntu
echo
rm -rf $PATH/ubuntu
sleep 1
echo -e "\t${G}Your ubuntu Distro ${R}Delete"
elif [ $Re -eq 2 ]; then
clear
echo
proot-distro remove debian
echo
rm -rf $PATH/debian
sleep 1
echo -e "\t${G}Your Debian Distro ${R}Delete"
elif [ $Re -eq 3 ]; then
clear
echo
proot-distro remove alpine
echo
rm -rf $PATH/alpine
sleep 1
echo -e "\t${G}Your Alpine Debian Distro ${R}Delete"
elif [ $Re -eq 4 ]; then
clear
echo
proot-distro remove manjaro-aarch64
echo
rm -rf $PATH/manjaro-arrch64
sleep 1
echo -e "\t${G}Your Manjaro-arrch64 Disrto ${R}Delete"
elif [ $Re -eq 5 ]; then
clear
echo
proot-distro remove archlinux
echo
rm -rf $PATH/Archlinux
sleep 1
echo -e "\t${G}Your Archlinux Disrto ${R}Delete"
elif [ $Re -eq 6 ]; then
clear
echo
proot-distro remove opensuse
echo
rm -rf $PATH/opensuse
sleep 1
echo -e "\t${G}Your Opensuse Disrto ${G}Delete"
elif [ $Re -eq 7 ]; then
clear
echo
proot-distro remove fedora
rm -rf $PATH/fedora
sleep 1
echo -e "\t${G}Your Fedora Distro ${R}Delete"
elif [ $Re -eq 8 ]; then
clear
echo
proot-distro remove pardus
rm -rf $PATH/pardus
sleep 1
echo -e ?"\t${G}Your Pardus Distro ${R}Delete"
elif [ $Re -eq 9 ]; then
clear
echo
proot-distro remove viod
rm -rf $PATH/void
sleep 1
echo -e "\t${G}Your viod Distro ${R}Delete"
elif [ $Re -eq 10 ]; then
clear
cd ..
echo
rm -rf kali-arm64
sleep 1
echo -e "\t${G}Your Kali Distro ${R}Delete"
elif [ $Re -eq 11 ]; then
banner
echo
proot-distro remove ubuntu
echo
rm -rf $PATH/ubuntu
sleep 1
echo
proot-distro remove debian
echo
rm -rf $PATH/debian
sleep 1
echo
proot-distro remove alpine
echo
rm -rf $PATH/alpine
sleep 1
echo
proot-distro remove manjaro-aarch64
echo
rm -rf $PATH/manjaro-arrch64
sleep 1
echo
proot-distro remove archlinux
echo
rm -rf $PATH/Archlinux
sleep 1
echo
proot-distro remove opensuse
echo
rm -rf $PATH/opensuse
sleep 1
echo
proot-distro remove pardus
rm -rf $PATH/pardus
sleep 1
echo
proot-distro remove viod
rm -rf $PATH/void
sleep 1
cd ~
echo
rm -rf kali-arm64
sleep 1
echo
proot-distro remove artix
rm -rf $PATH/Artix
sleep 1
rm -rf backbox-binds BackBox
rm -rf $PATH/Backbox
echo -e "\n${G}Successfully Removed Backbox Linux Distro\n"
echo -e "${G}Successfully Removed Linux Disrtos\n"
elif [ $Re == 12 ]; then
proot-distro remove artix
rm -rf $PATH/Artix
sleep 1
elif [ $Re == 13 ]; then
proot-distro remove deepin
rm -rf $PATH/Deepin
sleep 1
elif [ $Re == 14 ]; then
rm -rf backbox-binds BackBox
rm -rf $PATH/Backbox
echo -e "\n${G}Successfully Removed Backbox Linux Distro\n"
elif [ $Re == 15 ]; then
cd ~
rm -rf ParrotOS
echo -e "\n${G}Successfully Remove Parrot Linux Distro\n"
elif [ $Re == 16 ]; then
proot-distro remove raspberrypi
rm -rf $PATH/raspberrypi
echo -e "\n${G}Successfully Remove Raspberrypi Linux Distro\n"
elif [ $Re == 0 ]; then
clear
bash Linux-distro
fi