All Products
Search
Document Center

OpenSearch:Clear data

Last Updated:Nov 26, 2024

OpenSearch allows you to clear application data in the OpenSearch console

Usage notes

  • When you clear data, reindexing is triggered.

  • If you clear the data of an application, all documents of the application are cleared and cannot be restored. Proceed with caution.

  • If both online and offline applications exist, you must delete the offline application before you can clear data.

    Note

    After you configure an application and perform the reindexing operation for the first time, only an online application exists. If you directly perform operations such as data clearing or offline changes on the online application, reindexing is triggered. To ensure the stability of an online application, OpenSearch creates an offline application. You must perform change operations on the offline application. After the change operations are performed and indexes are created, you can perform testing in the offline application. After the test is passed, you can perform the operations on the online application. This ensures that change operations do not affect customer business.

  • To ensure that an instance provides services as expected, an offline application is generated when data is cleared. The offline application clears full data. If data is written into the instance as incremental data during the indexing process of the offline application, the offline application still synchronizes the incremental data.

Procedure

  1. Log on to the OpenSearch console.

  2. Select the region in which your instance is deployed. In the upper-left corner, select OpenSearch Industry Algorithm Edition.

  3. In the left-side navigation pane, click Instance Management. On the Instance Management page, find the instance that you want to manage, click the More icon in the Actions column, and then click Clear All Data. In the Clear All Data dialog box, enter the name of the application and click Clear. Data clearing triggers reindexing. In this case, an offline application is created.