I have a bunch of old indices from old versions I’d like to get rid of to free up disk and shards, e.g.:
.kibana_task_manager_7.15.2_001
.kibana_task_manager_7.17.5_001
.kibana_task_manager_8.3.3_001
.kibana_task_manager_8.6.0_001
.kibana_7.15.2_001
.kibana_7.17.5_001
.kibana_8.3.3_00
.kibana_8.6.0_001
.kibana_8.11.1_001
As an admin with superuser privileges, I still can’t delete them though:
action [indices:admin/delete] is unauthorized for user [*****] with effective roles [superuser] on restricted indices [.kibana_task_manager_8.3.3_001,.kibana_7.17.5_001,.kibana_8.6.0_001,.kibana_task_manager_7.17.5_001,.kibana_task_manager_8.6.0_001,.kibana_7.15.2_001,.kibana_8.11.1_001,.kibana_task_manager_7.15.2_001,.kibana_8.3.3_001], this action is granted by the index privileges [delete_index,manage,all]
These aren’t being used by anything (I’ve checked the aliases), so how do I clear them out?
I understand you are trying to delete Kibana indices from older versions. Do make sure that none of these indices are in use, otherwise Kibana will stop working. These indices are created as part of the saved objects migration and Kibana may be reusing “older” indices if there were no changes of mappings between versions.
If you have checked the list of aliases/indices and confirmed that these indices are not in use, then you can proceed to delete them. In order to do so, you will need to create a temporary role/user that has access to the Kibana system indices:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.