Deleting solr documents from Solr Admin

user1050619 picture user1050619 · Apr 22, 2014 · Viewed 78.1k times · Source

How do I delete all the documents in my SOLR index using the SOLR Admin.

I tried using the url and it works but want to know if the same can be done using the Admin..

Answer

Nanda Kumar picture Nanda Kumar · Dec 28, 2017

Use one of the queries below in the Document tab of Solr Admin UI:

XML:

<delete><query>*:*</query></delete>

JSON:

{'delete': {'query': '*:*'}}

Make sure to select the Document Type drop down to Solr Command (raw XML or JSON).