# How to use remove processor in php

**URL:** <https://discuss.elastic.co/t/how-to-use-remove-processor-in-php/166856>\
**Category:** Elasticsearch\
**Created:** [February 3, 2019, 8:27am UTC](https://discuss.elastic.co/t/how-to-use-remove-processor-in-php/166856 "2019-02-03T08:27:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajkumar\_E1](https://avatars.discourse-cdn.com/v4/letter/r/eb8c5e/32.png) [@rajkumar\_E1](https://discuss.elastic.co/u/rajkumar_E1)\
**Post date:** [February 3, 2019, 8:27am UTC](https://discuss.elastic.co/t/how-to-use-remove-processor-in-php/166856/1 "2019-02-03T08:27:13Z")

</div>

I need to remove fields in our documents, elastic search have remove process to remove multiple fields in our documents,

please suggest me how to remove multiple fields using curl and php.

example I need to remove name and email for following scenario

1. fields  
{  
"name": "Rajkumar",  
"email": "test@gmail.com"  
}

2. object with in objects  
{  
"data" : {  
"name": "Rajkumar",  
"email": "test@gmail.com"  
}  
}

3. array with in objects  
{  
"data" : [  
{  
"name": "Rajkumar",  
"email": "test@gmail.com"  
}  
]  
}

Thanks in advance

---

<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:** [March 3, 2019, 8:27am UTC](https://discuss.elastic.co/t/how-to-use-remove-processor-in-php/166856/2 "2019-03-03T08:27:18Z")

</div>

Closed on March 3, 2019, 8:27am UTC

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