From: Christian Weiske Date: Sun, 21 May 2017 08:44:08 +0000 (+0200) Subject: tell how to delete a domain X-Git-Url: https://git.cweiske.de/phinde.git/commitdiff_plain/046adeb0e1af4ef1054a5cf1ee884e91f0e7dc89?hp=56175d4847100299446a6421dc87bcf8c12627e0 tell how to delete a domain --- diff --git a/README.rst b/README.rst index 0008b60..5aa0709 100644 --- a/README.rst +++ b/README.rst @@ -74,6 +74,18 @@ Cron job Run ``bin/renew-subscriptions.php`` once a day with cron. +===== +Howto +===== + +Delete index data from one domain:: + + $ curl -iv -XDELETE -H 'Content-Type: application/json' -d '{"query":{"term":{"domain":"example.org"}}}' http://127.0.0.1:9200/phinde/_query + +That's delete-by-query 2.0, see +https://www.elastic.co/guide/en/elasticsearch/plugins/2.0/delete-by-query-usage.html + + ============ About phinde ============