# NEST to ElasticSearch.net migration issue with DeleteMany

**URL:** https://discuss.elastic.co/t/nest-to-elasticsearch-net-migration-issue-with-deletemany/355174
**Category:** Elasticsearch
**Tags:** language-clients
**Created:** [March 11, 2024, 4:52pm UTC](https://discuss.elastic.co/t/nest-to-elasticsearch-net-migration-issue-with-deletemany/355174 "2024-03-11T16:52:51Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![sudheer26](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@sudheer26](https://discuss.elastic.co/u/sudheer26)
#### Post date: [March 11, 2024, 4:52pm UTC](https://discuss.elastic.co/t/nest-to-elasticsearch-net-migration-issue-with-deletemany/355174/1 "2024-03-11T16:52:51Z")

</div>

I have an issue while migaring the code from NEST to ES client 8.9 and I could not find right solution. Can anyone help on this?  
NEST logic:

```csharp
Person myobject;
public class Persons
    {
        public Person[] persons { get; set; }
    }
Persons deleteParameters;
 var response = eClient.DeleteMany</Person/>(deleteParameters.persons);

```

I would like to convert the abobe code to Elastic.clients.elasticserach 8.9.

---

<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: [April 8, 2024, 4:53pm UTC](https://discuss.elastic.co/t/nest-to-elasticsearch-net-migration-issue-with-deletemany/355174/2 "2024-04-08T16:53:18Z")

</div>

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