# "Find and Replace" with an empty string / delete?

**URL:** <https://community.postman.com/t/find-and-replace-with-an-empty-string-delete/56419>\
**Category:** Help Hub\
**Tags:** find, delete, replace\
**Created:** [January 10, 2024, 1:23pm UTC](https://community.postman.com/t/find-and-replace-with-an-empty-string-delete/56419 "2024-01-10T13:23:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![thelemanu](https://avatars.discourse-cdn.com/v4/letter/t/ad7895/32.png) [@thelemanu](https://community.postman.com/u/thelemanu)\
**Post date:** [January 10, 2024, 1:23pm UTC](https://community.postman.com/t/find-and-replace-with-an-empty-string-delete/56419/1 "2024-01-10T13:23:23Z")

</div>

**Hello,**  
I have numerous (hundreds) POST requests in one collection. I need to remove one of the line which is present in the body of all those requests. I cannot find a way to delete the line through “Find and Replace”.

Current example:  
“vm\_use”: “default”,  
“vm\_sla”: “gold”,  
“vm\_loc”: “yyh”,

Target example:  
“vm\_use”: “default”,  
“vm\_loc”: “yyh”,

I using 10.21.14 on Windows.

_ **How can we delete a line from request body, using “Find and Replace” function in Postman ?** _

**Tks**

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [January 10, 2024, 3:06pm UTC](https://community.postman.com/t/find-and-replace-with-an-empty-string-delete/56419/2 "2024-01-10T15:06:21Z")

</div>

Hey @thelemanu 👋

Welcome to the Postman Community! :postman:

The find and replace feature wouldn’t be able to do that, you could find the `vm_sla` key with the body of the request but it wouldn’t delete the key/value pair from the object.

I think that this would need to be done within a text editor or be creating a script and parses the Collection JSON and would remove those lines.

---

<div class="post-metadata">

**Author:** ![thelemanu](https://avatars.discourse-cdn.com/v4/letter/t/ad7895/32.png) [@thelemanu](https://community.postman.com/u/thelemanu)\
**Post date:** [January 10, 2024, 3:43pm UTC](https://community.postman.com/t/find-and-replace-with-an-empty-string-delete/56419/3 "2024-01-10T15:43:43Z")

</div>

Hi Danny,  
Is there a version of my collection somewhere on my Windows PC ?  
I could find some data in “C:\Users\moi\AppData\Roaming\Postman” but no collection.  
Or is it all in Postman “cloud” ? And I would have to export the collection, have notepad++ do the magic, then re-import the collection ?  
Thanks for the support  
Rgds

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [January 10, 2024, 3:50pm UTC](https://community.postman.com/t/find-and-replace-with-an-empty-string-delete/56419/4 "2024-01-10T15:50:48Z")

</div>

Exporting the Collection from the UI, open that file in a text editor and then re-import after would be the way that I would go.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [February 9, 2024, 3:50pm UTC](https://community.postman.com/t/find-and-replace-with-an-empty-string-delete/56419/5 "2024-02-09T15:50:58Z")

</div>

Closed on February 9, 2024, 3:50pm UTC

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