Splunk Enterprise

How do I uninstall an app from a search head cluster?

TheBravoSierra
Path Finder

In Splunk Enterprise, prior versions, I used to be able to: 

Cd /opt/splunk/etc/shcluster/apps
rm -rf this_old_app
Apply shcluster bundle

Now when I go to apply the bundle to the members, it says directory is nonempty, unable to remove. How are apps uninstalled/removed now? Running version 9.4.3. 

Labels (2)
0 Karma
1 Solution

PrewinThomas
Motivator

@TheBravoSierra 

If the app was originally deployed via deployer your steps should work.
Ensure the directory is completely gone (no hidden files/permission issues).

Regards,
Prewin
🌟If this answer helped you, please consider marking it as the solution or giving a Karma. Thanks!

View solution in original post

PrewinThomas
Motivator

@TheBravoSierra 

If the app was originally deployed via deployer your steps should work.
Ensure the directory is completely gone (no hidden files/permission issues).

Regards,
Prewin
🌟If this answer helped you, please consider marking it as the solution or giving a Karma. Thanks!

livehybrid
SplunkTrust
SplunkTrust

Hi @TheBravoSierra 

Was the app originally installed via the SH Deployer?

If so you should be able to remove by removing the app from  /opt/splunk/etc/shcluster/apps as you suggested, however this will only work if the app was installed from the SH Deployer *and* the app is not disabled.

https://docs.splunk.com/Documentation/Splunk/latest/DistSearch/PropagateSHCconfigurationchanges

"To delete an app that you previously pushed, remove it from the configuration bundle. When you next push the bundle, each member will delete it from its own file system. Note: If you need to remove an app, inspect its app.conf file to make sure that state = enabled. If state = disabled, the deployer will not remove the app even if you remove it from the configuration bundle."

🌟 Did this answer help you? If so, please consider:

  • Adding karma to show it was useful
  • Marking it as the solution if it resolved your issue
  • Commenting if you need any clarification

Your feedback encourages the volunteers in this community to continue contributing

0 Karma

VatsalJagani
SplunkTrust
SplunkTrust

@TheBravoSierra - It should delete the App from SH members as well with your steps.

Only one thing document which could affect it is that when App is disabled, SHC member will not remove the App. 

0 Karma
Get Updates on the Splunk Community!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...