1.查看安装的clickhouse
[root@localhost clickhouse]# rpm -qa|grep clickhouse
clickhouse-server-common-20.8.3.18-1.el7.x86_64
clickhouse-common-static-20.8.3.18-1.el7.x86_64
clickhouse-server-20.8.3.18-1.el7.x86_64
clickhouse-client-20.8.3.18-1.el7.x86_64

 

2.删除安装包
yum remove -y clickhouse-common-static
yum remove -y clickhouse-server
yum remove -y clickhouse-client
yum remove -y clickhouse-server-common

 

3.删除配置文件
rm -rf /var/lib/clickhouse
rm -rf /etc/clickhouse-*
rm -rf /var/log/clickhouse-server