A session cookie can make an API treat a new request as part of an earlier sign-in. In Postman on the Linux desktop, clearing the cookies for one domain lets you retest a request without reusing the cookies stored for that domain.

Postman's cookie manager groups stored cookies by domain. Removing a domain row deletes every cookie listed under it, including sign-in cookies. You may need to sign in to that API again to regain access.

The cookie jar supplies matching cookies automatically. A Cookie header you set on the request can still send cookie values after you clear the jar entry. The server can also replace a deleted cookie by sending a new Set-Cookie header.

Steps to clear cookies for a domain in Postman:

Start with Postman's Lightweight API Client open on a configured GET request with the response Body visible when the request returns. Use a read-only HTTPS endpoint you are authorized to test that reports the cookies it receives even when you are signed out of the API and issues no new cookies. The cookie jar must be enabled for the request, with no manually set Cookie header. The cookie you want to clear must match the request URL and be stored under the request host's own row in MANAGE COOKIES, such as api.example.test.

  1. Click Send on the request to your test domain.

    The pictured URL, https://api.example.test/v1/cookies, is an example. The response is ready when its status, time and size appear.

  2. Confirm that the response Body lists the stored cookie you want to clear.

    The example response lists session with the value demo under cookies. If the response does not report your cookie, stop and check that its domain and path match the request URL.

  3. Click Cookies below Send.
  4. Hover over the request host's own row in MANAGE COOKIES.

    The pictured row is api.example.test. Cookies stored under a parent domain can apply to every subdomain beneath it, so only the request host's own row is cleared here.

  5. Click the × at the right end of that domain row.

    The domain row disappears with all its cookies. The × beside an individual cookie removes just that cookie.

  6. Close MANAGE COOKIES using the × in the upper-right corner of the dialog.
  7. Click Send again for the same URL.

    The previous response can stay on screen until the request finishes. The new response has its own status, time and size.

  8. Confirm that the latest successful response Body omits the cookie you cleared.

    The example returns 200 OK with an empty cookies object ({}). If your cookie is still listed, it was sent again.

Share this guide