Last active
April 28, 2019 01:12
-
-
Save iamhowardtheduck/92c7fa1100261695d407331000c83592 to your computer and use it in GitHub Desktop.
This file contains hidden or 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/sh | |
# ------------------------------------------------------------------------------ | |
service elasticsearch stop | |
service kibana stop | |
service logstash stop | |
yum remove elasticsearch kibana logstash filebeat packetbeat metricbeat heartbeat-elastic -y | |
rm -rf /etc/elasticsearch | |
rm -rf /etc/kibana | |
rm -rf /etc/logstash | |
rm -rf /etc/yum.repos.d/elasticsearch.repo | |
rm -rf /etc/yum.repos.d/kibana.repo | |
rm -rf /etc/yum.repos.d/logstash.repo | |
rm -rf /var/lib/elasticsearch | |
rm -rf /var/lib/kibana | |
rm -rf /var/lib/logstash | |
rm -rf /var/lib/filebeat | |
rm -rf /var/lib/packetbeat | |
rm -rf /var/lib/heartbeat | |
rm -rf /var/lib/metricbeat | |
rm -rf /var/log/elasticsearch | |
rm -rf /var/log/kibana | |
rm -rf /var/log/logstash | |
rm -rf /var/log/filebeat | |
rm -rf /var/log/metricbeat | |
rm -rf /var/log/packetbeat | |
rm -rf /var/log/heartbeat |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment