Reset Command for Python SDK
Thereset method allows you to clear all documents from a particular index.
Response
string
required
'Success' if the database is successfully reset.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
from upstash_search import Search
client = Search(
url="<UPSTASH_SEARCH_REST_URL>",
token="<UPSTASH_SEARCH_REST_TOKEN>",
)
index = client.index("movies")
index.reset()
reset method allows you to clear all documents from a particular index.
'Success' if the database is successfully reset.from upstash_search import Search
client = Search(
url="<UPSTASH_SEARCH_REST_URL>",
token="<UPSTASH_SEARCH_REST_TOKEN>",
)
index = client.index("movies")
index.reset()
Was this page helpful?