const responseReset = await index.reset();
// 'Success'

The reset method allows you to clear all documents from a particular index.

Response

'Success' if the database is successfully reset.

const responseReset = await index.reset();
// 'Success'