Support Questions
Find answers, ask questions, and share your expertise

cleanup of a search collection outside of HUE

New Contributor

Hi,

plant o set up an automatic process to generate new collection on daily base. From devOp perspective, need a way to clean up expired collections from shell script.

 

The command "solrctl instancedir --delete  collectionName" not able to clean the collection record from Search GUI under HUE.  Is there any restFul API

for Solr Cloud to delete collection?  What command the "delete" button in Search/HUE executes?

 

Thanks

 

1 REPLY 1

Cloudera Employee

instancedir only deletes the configuration, not the collection.  You want to:

- delete the collection via "solrctl collection --delete collectionName"

- if applicable, delete the instancedir