# The pm.request.headers.delete function does not exist

**URL:** <https://community.postman.com/t/the-pm-request-headers-delete-function-does-not-exist/10927>\
**Category:** Help Hub\
**Tags:** scripts, request, headers\
**Created:** [February 21, 2020, 10:15am UTC](https://community.postman.com/t/the-pm-request-headers-delete-function-does-not-exist/10927 "2020-02-21T10:15:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![arvidslump](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/arvidslump/32/3863_2.png) [@arvidslump](https://community.postman.com/u/arvidslump)\
**Post date:** [February 21, 2020, 10:15am UTC](https://community.postman.com/t/the-pm-request-headers-delete-function-does-not-exist/10927/1 "2020-02-21T10:15:49Z")

</div>

source: [https://learning.postman.com/docs/postman/scripts/postman-sandbox-api-reference/](https://learning.postman.com/docs/postman/scripts/postman-sandbox-api-reference/)

it mentions the existance of a pm.request.headers.delete([key]), however the correct call is pm.request.headers.remove([key]).

Should be changed to the correct value imo.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![suesmith](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/suesmith/32/2307_2.png) [@suesmith](https://community.postman.com/u/suesmith)\
**Post date:** [February 21, 2020, 10:22am UTC](https://community.postman.com/t/the-pm-request-headers-delete-function-does-not-exist/10927/2 "2020-02-21T10:22:01Z")

</div>

Thanks for reporting @arvidslump! I will look into this. FYI the docs repo is actually open source so you are more than welcome to get involved on there. You can create issues for problems like this or even contribute to the content if that’s something you’re interested in. 🙂

> **[GitHub - postmanlabs/postman-docs: Documentation for Postman, a collaboration...](https://github.com/postmanlabs/postman-docs)**
>
> Documentation for Postman, a collaboration platform for API development. Available for Mac, Windows, and Linux. - GitHub - postmanlabs/postman-docs: Documentation for Postman, a collaboration platf...

---

<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:** [February 24, 2020, 12:45pm UTC](https://community.postman.com/t/the-pm-request-headers-delete-function-does-not-exist/10927/3 "2020-02-24T12:45:27Z")

</div>

Hey @arvidslump

Thanks for reporting this to us! 🏆

I’ve included this change as well as a couple of other fixes in this PR 😄[Updated file to include missing pm.\* API methods by DannyDainton · Pull Request #2200 · postmanlabs/postman-docs · GitHub](https://github.com/postmanlabs/postman-docs/pull/2200)

---

<div class="post-metadata">

**Author:** ![arvidslump](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/arvidslump/32/3863_2.png) [@arvidslump](https://community.postman.com/u/arvidslump)\
**Post date:** [February 25, 2020, 9:42am UTC](https://community.postman.com/t/the-pm-request-headers-delete-function-does-not-exist/10927/4 "2020-02-25T09:42:44Z")

</div>

Thanks, good stuff!!!
