Splunk Enterprise

How can I resolve the below error while running kvstore clean command?

mounika572
Engager

ERROR : could not remove all contents of '/opt/data/kvstore': 1 errors occured.description for first 1 :[{operation :"failed to remove directory", error:"directory not empty", file:"/opt/data/kvstore/mongo"}]

Labels (1)
0 Karma
1 Solution

mounika572
Engager

Thanks, after changing the permission of /opt/data/kvstore/mongo its working fine.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

Have you checked the permissions on /opt/data/kvstore/mongo?  Have you tried deleting the contents manually?

---
If this reply helps you, Karma would be appreciated.
0 Karma

mounika572
Engager

Thanks, after changing the permission of /opt/data/kvstore/mongo its working fine.

Get Updates on the Splunk Community!

Index This | Why did the turkey cross the road?

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

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...