
Uninstall Splunk Enterprise
Learn how to remove Splunk Enterprise from a host by following the procedures in this topic.
Prerequisites
- If you configured Splunk Enterprise to start on boot, remove it from your boot scripts before you uninstall.</br>
./splunk disable boot-start
- Stop Splunk Enterprise. Navigate to
$SPLUNK_HOME/bin
and type./splunk stop
(or justsplunk stop
on Windows).
Uninstall Splunk Enterprise with your package management utilities
Use your local package management commands to uninstall Splunk Enterprise. In most cases, files that were not originally installed by the package will be retained. These files include your configuration and index files which are under your installation directory.
In these instructions, $SPLUNK_HOME
refers to the Splunk installation directory. On Windows, this is C:\Program Files\Splunk
by default. For most Unix platforms, the default installation directory is /opt/splunk
. On Mac OS X, it is /Applications/splunk
.
RedHat Linux
rpm -e splunk_product_name
Debian Linux
dpkg -r splunk
Remove all Splunk files, including configuration files
dpkg -P splunk
FreeBSD
pkg_delete splunk
Uninstall Splunk Enterprise from a different location
pkg_delete -p /usr/splunk splunk
Solaris
pkgrm splunk
HP-UX
- Stop Splunk Enterprise.
$SPLUNK_HOME/bin/splunk stop
- If you enabled boot-start, run the following command as the root user.
$SPLUNK_HOME/bin/splunk disable boot-start
- Delete the Splunk installation directories.
rm -rf $SPLUNK_HOME
Other things you might want to delete:
- If you created any indexes and did not use the Splunk Enterprise default path, you must delete those directories as well.
- If you created a user or group for running Splunk Enterprise, you should also delete them.
Windows
- Use the Add or Remove Programs option in the Control Panel. In Windows 7, 8.1, and 10, and Windows Server 2008 R2 and 2012 R2, that option is available under Programs and Features.
- (Optional) You can also uninstall Splunk Enterprise from the command line by using the
msiexec
executable against the Splunk installer package.
msiexec /x splunk-<version>-x64.msi
Note: Under some circumstances, the Microsoft installer might present a reboot prompt during the uninstall process. You can safely ignore this request without rebooting.
Uninstall Splunk Enterprise manually
If you can't use package management commands, use these instructions to uninstall Splunk Enterprise.
- Stop Splunk Enterprise.
$SPLUNK_HOME/bin/splunk stop
- Find and
kill
any lingering processes that contain "splunk" in their name.
For Linux and Solaris
kill -9 `ps -ef | grep splunk | grep -v grep | awk '{print $2;}'`
For FreeBSD and Mac OS
kill -9 `ps ax | grep splunk | grep -v grep | awk '{print $1;}'`
- Remove the Splunk Enterprise installation directory,
$SPLUNK_HOME
.
rm -rf /opt/splunk
On Mac OS, you can also remove the installation directory by dragging the folder into the trash.
- Remove any Splunk Enterprise datastore or indexes outside the top-level directory, if they exist.
rm -rf /opt/splunkdata
- Delete the
splunk
user and group, if they exist.
For Linux, Solaris, and FreeBSD:userdel splunk groupdel splunk
For Mac OS
Use the System Preferences > Accounts panel to manage users and groups.
For Windows
Open a command prompt and run the commandmsiexec /x
against the msi package that you used to install Splunk Enterprise. If you don't have that package, get the correct version from the download page.
PREVIOUS Migrate to the new Splunk Enterprise licenser |
NEXT PGP Public Key |
This documentation applies to the following versions of Splunk® Enterprise: 6.4.0, 6.4.1, 6.4.2, 6.4.3, 6.4.4, 6.4.5, 6.4.6, 6.4.7, 6.4.8, 6.4.9, 6.4.10, 6.4.11, 6.5.0, 6.5.1, 6.5.1612 (Splunk Cloud only), 6.5.2, 6.5.3, 6.5.4, 6.5.5, 6.5.6, 6.5.7, 6.5.8, 6.5.9, 6.5.10, 6.6.0, 6.6.1, 6.6.2, 6.6.3, 6.6.4, 6.6.5, 6.6.6, 6.6.7, 6.6.8, 6.6.9, 6.6.10, 6.6.11, 6.6.12
Feedback submitted, thanks!