API Endpoint
Reset Solr Index Data
Delete all data from a Solr index while keeping the index itself and its configuration files intact. Useful when you need to re-index from scratch without recreating the index.
Endpoint
GET https://opensolr.com/solr_manager/api/reset_index
Parameters
| Parameter | Status | Description |
|---|---|---|
email | required | Your Opensolr registration email address |
api_key | required | Your Opensolr API key |
index_name | required | The name of the index you wish to reset |
Warning: This deletes all documents from the index. The index configuration and schema are preserved, but all data will be permanently removed. Consider creating a backup first.
Code Examples
cURL
curl -s "https://opensolr.com/solr_manager/api/reset_index?email=YOUR_EMAIL&api_key=YOUR_API_KEY&index_name=YOUR_INDEX"
PHP
$params = http_build_query([ 'email' => 'YOUR_EMAIL', 'api_key' => 'YOUR_API_KEY', 'index_name' => 'YOUR_INDEX', ]); $response = json_decode(file_get_contents( 'https://opensolr.com/solr_manager/api/reset_index?' . $params ), true); print_r($response);
Python
import requests response = requests.get( "https://opensolr.com/solr_manager/api/reset_index", params={ "email": "YOUR_EMAIL", "api_key": "YOUR_API_KEY", "index_name": "YOUR_INDEX", } ) data = response.json() print(data)
Related Documentation
Create Index
Create a new Solr index via the API.
List Indexes
Get a list of all your Opensolr indexes.
Index Info & Stats
Get detailed information and statistics for an index.
Platform Guide
Complete guide to the Opensolr platform and control panel.
Need help managing your Solr indexes? We are here to help.
Contact Support