Getting Data In

How do we delete old data for only three files in the one index ?

kiranpanchavat1
Path Finder

we need to delete three files from the index 

I have used the |delete command to clean the indexed data and it’s deleted but still its showing under the source field.

source='/var/log/splunk/syslog/******/********' | delete

source='/var/log/splunk/syslog/******/********' | delete

source='/var/log/splunk/syslog/******/********' | delete

Labels (1)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @kiranpanchavat1,

the delete command makes only a logical deleting of the events but it doesn't remove the deleted events from the buckets.

If you want to fully clean an index you can use the command 

./splunk clean eventdata -index <your_index>

if you want to remove all the entire buckets where the latest event exceeds a retention time, you could change the retention time for that index, wait for the deletion of old data and the set up again the the correct retention time disk.

It isn't possible to physically delete only a part of events in a bucket.

Ciao.

Giuseppe

kiranpanchavat1
Path Finder

@gcusello 

See, my data is stored in one index and in that index there are so many data is storing so i need to delete only the particular files 

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @kiranpanchavat1,

if you're speaking of delete an entire bucket, in Community there are some examples of deleting buckets but I didn't directly tested:

https://community.splunk.com/t5/Deployment-Architecture/How-to-manually-delete-buckets-in-cluster-pe...

https://community.splunk.com/t5/Deployment-Architecture/Delete-corrupt-bucket-or-down-index-in-clust...

If instead you want to delete only a part of a bucket it isn't possible, you can only make a logical deletion (delete command).

Ciao.

Giuseppe

0 Karma

kiranpanchavat1
Path Finder

@gcusello Can you provide me the btprobe command details 

0 Karma

gcusello
SplunkTrust
SplunkTrust
0 Karma

PickleRick
SplunkTrust
SplunkTrust

What do you mean by "still showing under the source field"?

Also, you know that delete doesn't physically remove the data from index files? Just marks them as inaccessible.

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...