Skip to content

Instantly share code, notes, and snippets.

@fhdalikhan
Last active March 31, 2021 11:49
Show Gist options
  • Save fhdalikhan/6d0a005a521619ad98fa5a815da82964 to your computer and use it in GitHub Desktop.
Save fhdalikhan/6d0a005a521619ad98fa5a815da82964 to your computer and use it in GitHub Desktop.
how to delete all documents from a solr core
# via curl
curl "http://localhost:8983/solr/replaceCoreNameHere/update?commit=true" -H "Content-Type: text/xml" --data-binary '<delete><query>*:*</query></delete>'
# via browser
http://localhost:8983/solr/locationsdirect-products/update?commit=true&stream.body=<delete><query>*:*</query></delete>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment