Last active
March 31, 2021 11:49
-
-
Save fhdalikhan/6d0a005a521619ad98fa5a815da82964 to your computer and use it in GitHub Desktop.
how to delete all documents from a solr core
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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