add feature to delete oldest index in addition to older than and by size