Pm.request.headers.delete does not exist, but is mentioned in the documentation

source: 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.

1 Like

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. :slightly_smiling_face:

1 Like

Hey @arvidslump

Thanks for reporting this to us! :trophy:

I’ve included this change as well as a couple of other fixes in this PR :smile: https://github.com/postmanlabs/postman-docs/pull/2200

1 Like

Thanks, good stuff!!!