API Endpoint
Delete Solr Index
Permanently delete a Solr index and all its data. This action cannot be undone.
Endpoint
GET https://opensolr.com/solr_manager/api/delete_core
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 delete |
Warning: This permanently deletes the index and all its data. Make sure you have a backup before proceeding. This action cannot be undone.
Code Examples
cURL
curl -s "https://opensolr.com/solr_manager/api/delete_core?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/delete_core?' . $params ), true); print_r($response);
Python
import requests response = requests.get( "https://opensolr.com/solr_manager/api/delete_core", 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