API - Delete Solr Index

Index Management

Deletes one of your Opensolr Indexes: its data, its configuration files and its schedules (crawl, backup, optimize).

Endpointhttps://opensolr.com/solr_manager/api/delete_index (delete_core is the same call)
MethodGET or POST
Authemail and api_key of your account, as GET or POST parameters: Authentication.
In the panelDelete an index
There is no undo. Make a backup and download it first if you may need the data: create_backup.

01 · Parameters

index_nameRequired

The name of the index (core_name works too, with both endpoint names).

02 · Example

curl -s "https://opensolr.com/solr_manager/api/delete_index?email=YOUR_EMAIL&api_key=YOUR_API_KEY&index_name=my_index"

03 · Answer

{
    "status": true,
    "msg": "DELETED_OK"
}

On a cluster master, every replica index is deleted first, then the master.

04 · Errors

ERROR_INVALID_CORE_NAMEHTTP 200

No index name.

ERROR_USER_IS_NOT_OWNERHTTP 200

The index is not yours.

ERROR_AUTHENTICATION_FAILEDHTTP 403

The email and API key do not match.

ERROR_RATE_LIMIT_PER_MINUTEHTTP 429

Too many calls. Wait for the Retry-After seconds: Rate limits.

05 · Related

Empty the index but keep it: reset_index.

Every error code and HTTP status of the API: API errors. Calls per minute and per hour: Rate limits.