# How to use bulk API with file using JEST Client

**URL:** <https://discuss.elastic.co/t/how-to-use-bulk-api-with-file-using-jest-client/63869>\
**Category:** Elasticsearch\
**Created:** [October 25, 2016, 12:32pm UTC](https://discuss.elastic.co/t/how-to-use-bulk-api-with-file-using-jest-client/63869 "2016-10-25T12:32:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhi\_chinchole](https://avatars.discourse-cdn.com/v4/letter/a/d6d6ee/32.png) [@abhi\_chinchole](https://discuss.elastic.co/u/abhi_chinchole)\
**Post date:** [October 25, 2016, 12:32pm UTC](https://discuss.elastic.co/t/how-to-use-bulk-api-with-file-using-jest-client/63869/1 "2016-10-25T12:32:48Z")

</div>

I am trying to delete documents from specific type of the Elasticsearch index. I have successfully executed CURL command \> curl -s -XPOST [http://localhost:9200/\_bulk](http://localhost:9200/_bulk) --data-binary '@/home/abhijeet/Downloads/elasticsearch-2.3.3/query.json'  
Now I want to execute same command via JEST client. How it can be achieved ???

---

<div class="post-metadata">

**Author:** ![mainec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mainec/32/5557_2.png) [@mainec](https://discuss.elastic.co/u/mainec)\
**Post date:** [October 25, 2016, 4:38pm UTC](https://discuss.elastic.co/t/how-to-use-bulk-api-with-file-using-jest-client/63869/2 "2016-10-25T16:38:51Z")

</div>

Not sure if there are any JEST people reading this forum. You might be better off pinging the developers of that library directly.

Also if you prefer talking to Elasticsearch from Java via REST - your feedback on the new Java REST client here [https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/index.html](https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/index.html) would be highly appreciated.

Isabel

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 10:09pm UTC](https://discuss.elastic.co/t/how-to-use-bulk-api-with-file-using-jest-client/63869/3 "2017-07-05T22:09:56Z")

</div>


