rbeg
(regis beguin)
February 8, 2018, 7:58pm
1
Hello, I have 1 index per day.
I want to delete all my data that is older than 1 week, not to saturate my disk space.
What should I do for that :
delete index (Delete Index )
delete all documents of my index (Delete By Query API )
Delete all documents of my index and then delete index
Delete documents, shrink, delete index
Thank you for advance.
djtecha
(Djtecha)
February 8, 2018, 8:23pm
2
Just delete the old indices, it's a super quick operation and the OS should be able to reclaim the space.
rbeg
(regis beguin)
February 8, 2018, 8:24pm
3
Thank you.
Simple, good work Elastic.
I just tried, it work fine. No shrink necessity.
Diggy
February 8, 2018, 8:32pm
4
You could also use Curator. Set it up to delete indices, then run as a cron job. I do that, and it works a treat.
rbeg
(regis beguin)
February 8, 2018, 8:39pm
5
Thank you, I will see that, if it's better than launching my shell script with crontab.
system
(system)
Closed
March 8, 2018, 8:40pm
6
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.