What is better to recover disk space

(regis beguin) #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 :

  1. delete index (Delete Index)
  2. delete all documents of my index (Delete By Query API)
  3. Delete all documents of my index and then delete index
  4. Delete documents, shrink, delete index

Thank you for advance.

(Djtecha) #2

Just delete the old indices, it's a super quick operation and the OS should be able to reclaim the space.

(regis beguin) #3

Thank you.
Simple, good work Elastic.
I just tried, it work fine. No shrink necessity.


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.

(regis beguin) #5

Thank you, I will see that, if it's better than launching my shell script with crontab.

(system) #6

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.