Postman: How do you delete cookies in the pre-request script? : <p>All the postman cookie-management answers I've seen refer to either the browser extension (open chrome, delete cookies viz interceptor etc) or with the app, using the UI to manually manage cookies.</p>

<p>I would like to delete certain cookies in my pre-request code as part of scripting my API tests. (delete them programmatically)</p>

<p>The Sandobx API docs mention  <code>pm.cookies</code> so I tried</p>

<pre><code>if (pm.cookies !== null) {
   console.log("cookies!");
   console.log(pm.cookies);
}
</code></pre>

<p>But the <code>pm.cookies</code> array is empty. Yet in the console, the GET call then passes a cookie.</p>

<p>There's also <code>postman.getResponseCookies</code>, which is null (I assume because we're in the pre-request section, not in the test section)</p>

<p><a href="https://stackoverflow.com/a/44639513/1916341">One answer</a> suggested calling the postman-echo service to delete the cookie. I haven't investigated this yet, but it doesn't feel right.</p>
