OS : RHEL
# uninstall openstack
# uninstall openstack
[root@xianghui ~]# yum list installed | grep @openstack- | awk '{ print $1 }' | xargs yum -y remove
# uninstall MySQL
[root@xianghui ~]#yum -y remove mysql mysql-server MySQL-python
[root@xianghui ~]# rm -rf /var/lib/mysql
# cleanup data
创建cleanup文件
[root@xianghui ~]#vi cleanup
[root@xianghui ~]#cat cleanup
for cmp in mysql keystone glance nova cinder neutron heat
do
rm -rf /var/lib/$cmp
rm -rf /etc/$cmp
rm -rf /var/log/$cmp
done
[root@xianghui ~]# source cleanup
[root@xianghui ~]# yum clean all