Commands

Reset

Reset Command for Python SDK

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

Response

Responsestringrequired

'Success' if the database is successfully reset.

from upstash_search import Searchclient = Search(    url="<UPSTASH_SEARCH_REST_URL>",    token="<UPSTASH_SEARCH_REST_TOKEN>",)index = client.index("movies")index.reset()
Loading search…