Delete a Collection

Delete a collection from a Solr cluster in Lucidworks Managed Search.

Note
This topic describes how to delete a collection in Managed Search using the API. For instructions using the UI, see Manage Collections in Managed Search UI.

Request

Send an HTTP request with these elements.

Element Description

Method

DELETE

Endpoint

customers/customerId/clusters/clusterId/collections/collectionName

Request header fields

Request header fields specify metadata for the request. For example, the Authorization header contains the OAuth2 access token.

Message body

None

Response

A response from a request to delete a Solr collection contains these elements.

Element Description

Status line

The status line contains the status code and the reason phrase.

Response header fields

Response header fields specify metadata about the response.

Message body

JSON object that specifies the taskId and the status of the request.

Example

Request:

curl -XDELETE -H "Authorization: Bearer accessTokenManagedSearch" "https://pg01.us-west1.cloud.lucidworks.com/managed/api/customers/lucidworks/clusters/jeff-1/collections/test-collection"