Marvel indices taking lot of space? Delete indices older than 7 days!

It looks like Marvel is generating some data everyday. Is there a way to reduce the amount of data generated by marvel? The short answer to the above question is Yes!

curator --host show indices --older-than 30 --time-unit days --timestring '%Y.%m.%d' --prefix .marvel
curator --host close indices --older-than 30 --time-unit days --timestring '%Y.%m.%d' --prefix .marvel
curator --host delete indices --older-than 30 --time-unit days --timestring '%Y.%m.%d' --prefix .marvel

If we want to remove all indices from February 2015:

curator --host show indices --regex '\.marvel-2015\.02\.*'
curator --host close indices --regex '\.marvel-2015\.02\.*'
curator --host delete indices --regex '\.marvel-2015\.02\.*'

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.