Expunge deleted data?


#1

I deleted 6 indices (I used for learning) each is less than 2 MB, a month ago by:
$ curl -XDELETE 'http://localhost:9200/logstash-*'
they do not show up when
http://127.0.0.1:9200/_cat/indices

but the data folder still has them.
How to clean the data folder?

In the data folder:
there are all the stuff related to indices, with subfolders and plenty of files.
They are available in 4 nodes.
Each folder is 7-14 MB.
For example:
Here is the outcome of the
tree /f
for the 4th node
starting form
cluster/nodes/4/indices/Shakespeare/

-->1
    -->index
            segments_6
            write.lock
            _0.cfe
            _0.cfs
            _0.si
            _1.cfe
            _1.cfs
            _1.si
            _2.cfe
            _2.cfs
            _2.si            
    -->translog
            translog-1.tlog
            translog.ckp            
    -->_state
            state-0.st     
-->2
    -->index
            segments_5
            write.lock
            _0.cfe
            _0.cfs
            _0.si
            _1.cfe
            _1.cfs
            _1.si
            _2.cfe
            _2.cfs
            _2.si        
    -->translog
            translog-1.tlog
            translog.ckp           
    -->_state
            state-0.st           
-->_state
        state-1.st

(Mark Walkom) #2

That's unusual, what's the timestamp on those dir/files?


#3

1/29/2016


#4

@warkolm
The time stamp on the files are
1/29/2016
How long do I have to wait till be able to get the disk space back?


(Mark Walkom) #5

It should release it immediately, so this is odd.

Do you have another index you can delete to see if the files are removed?


#6

Thank you.
I wasted too much time on this.
I deleted the whole thing and started from scratch.
So far no problems in expunging the deleted data in the re-installation.
Best regards


(system) #7