# NEST to ElasticSearch.net migration issue with DeleteMany

**URL:** https://discuss.elastic.co/t/nest-to-elasticsearch-net-migration-issue-with-deletemany/361096
**Category:** Elasticsearch
**Tags:** language-clients
**Created:** [June 9, 2024, 10:18am UTC](https://discuss.elastic.co/t/nest-to-elasticsearch-net-migration-issue-with-deletemany/361096 "2024-06-09T10:18:56Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![AMElastic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amelastic/32/121862_2.png) [@AMElastic](https://discuss.elastic.co/u/AMElastic)
#### Post date: [June 9, 2024, 10:18am UTC](https://discuss.elastic.co/t/nest-to-elasticsearch-net-migration-issue-with-deletemany/361096/1 "2024-06-09T10:18:56Z")

</div>

I have an issue while migrating the code from NEST to ES client 8.14.  
I have a list of ids, that I would want to delete.

I tried the following, but it doesn't work as it doesn't accept ids as a parameter for the DeleteMany method.

`var result = await elasticsearchClient.BulkAsync(s => s.DeleteMany<Model>(Ids).Index(IndexName));`

Can anyone help on this?

---

<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 7, 2024, 10:18am UTC](https://discuss.elastic.co/t/nest-to-elasticsearch-net-migration-issue-with-deletemany/361096/2 "2024-07-07T10:18:59Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
