Knowledge Management

Can I delete all data from a KV store at once?

awurster
Contributor

How can I reinitialise my KV store or collection which already has data in it?

My use case is that I am mocking up a new app, but have decided to add and change certain fields into my already-existent KV store.

I've seen this example from the REST API guide and have used it successfully:

curl -k -u admin:changeme -X DELETE \
    https://localhost:8089/servicesNS/nobody/kvstoretest/storage/collections/data/kvstorecoll

but i'm just wondering if it's possible to do it all in one go via the UI or a simple, quoted REST URI.

1 Solution

masonmorales
Influencer
splunk clean  kvstore -app <appname> -collection <collection name>

View solution in original post

andygerber
Path Finder

How are the answers below different than just doing:

|outputlookup <kvstorename>

florianhh
Explorer

Dangerously simple! It worked for me.

0 Karma

bobnieuwenhuis
Explorer

There is no easier way then just doing that |outputlookup Thanks!

masonmorales
Influencer
splunk clean  kvstore -app <appname> -collection <collection name>

dgladkikh_splun
Splunk Employee
Splunk Employee

Check the

splunk help clean

You can clean kvstore collection with clean command.

Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...