Installation Manual

 


Uninstall

This documentation does not apply to the most recent version of Splunk. Click here for the latest version.

Uninstall

Use your local package management commands to uninstall Splunk. In most cases, files not originally installed by the package will be retained. This usually means your configuration and index files, which are under the same directory (default /opt/splunk) as the rest of the installation by default.


RedHat Linux

# rpm --erase splunk-2.1-0

Debian Linux

# dpkg -r splunk

Solaris

# pkgrm splunk

FreeBSD

# pkg_delete splunk

In most cases, files not originally installed by the rpm package will be retained. This usually means your configuration and index files, which are under the same directory (default ///opt/splunk) as the rest of the installation by default.


Manual uninstall

If you can't use package management commands, these commands will remove the installed components except for any init scripts you've created.


# kill -9 `ps -ef | grep splunk | grep -v grep | awk '{print $1}'`
# rm -rf /opt/splunk      (or wherever you installed Splunk)
# rm -rf /opt/splunkdata   (if you set up datastore or indexes outside the top-level directory)
# userdel splunk
# groupdel splunk

This documentation applies to the following versions of Splunk: 2.1 , 2.2 , 2.2.1 , 2.2.3 , 2.2.6 View the Article History for its revisions.


You must be logged into splunk.com in order to post comments. Log in now.

Was this documentation topic helpful?

If you'd like to hear back from us, please provide your email address:

We'd love to hear what you think about this topic or the documentation as a whole. Feedback you enter here will be delivered to the documentation team.