Help Center/ Cloud Search Service/ FAQs/ Using CSS Cluster Search Engines/ How Do I Clear Elasticsearch Indexes in CSS?
Updated on 2024-10-12 GMT+08:00

How Do I Clear Elasticsearch Indexes in CSS?

  • Have indexes automatically cleared on a regular basis.

    You can create a scheduled task to execute an index deletion request periodically. CSS supports Open Distro Index State Management. For details about how to clear obsolete indexes periodically, see Decoupling Index Storage and Compute Through Index Lifecycle Management.

    For details about Open Distro Index State Management, see https://opendistro.github.io/for-elasticsearch-docs/docs/im/ism/.

  • Manually clear indexes.
    • Log in to Kibana and run the DELETE / Index name command in Dev Tools.
    • Log in to Cerebro, search for the target index name, click the index name, click delete index, and click Confirm in the displayed dialog box.
      Figure 1 Deleting an index from Cerebro