Forked from nz/Delete all documents in a Solr index using curl.md
Last active
November 7, 2015 12:28
-
-
Save debraj-manna/ff914a6e6b9f94611693 to your computer and use it in GitHub Desktop.
Delete all documents in a Solr index using curl
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
curl http://localhost:8983/solr/discovery/update --data '<delete><query>*:*</query></delete>' -H 'Content-type:text/xml; charset=utf-8' | |
curl http://localhost:8983/solr/discovery/update --data '<commit/>' -H 'Content-type:text/xml; charset=utf-8' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment