Forked from nz/Delete all documents in a Solr index using curl.md
Last active
August 29, 2015 14:25
-
-
Save LCHCAPITALHUMAIN/3df31908aaf3d8bab0f5 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
# http://wiki.apache.org/solr/FAQ#How_can_I_delete_all_documents_from_my_index.3F | |
# http://wiki.apache.org/solr/UpdateXmlMessages#Updating_a_Data_Record_via_curl | |
curl http://index.websolr.com/solr/a0b1c2d3/update -H "Content-Type: text/xml" --data-binary '<delete><query>*:*</query></delete>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment