---
title: "Deletes cookies via the `DELETE` method on `/cookies` — RESTful symmetry with"
url: "https://developer.rucho.org/apis/rucho/versions/5bdf1bcb-8db4-40f1-a293-72c7198e26c8/operations/delete_cookies_method_handler"
---

> Full API specification: https://developer.rucho.org/apis/rucho/versions/5bdf1bcb-8db4-40f1-a293-72c7198e26c8.md

# Deletes cookies via the `DELETE` method on `/cookies` — RESTful symmetry with

`DELETE` `/cookies`

Operation ID: `delete_cookies_method_handler`

`GET /cookies/delete`. Each query-parameter name expires the matching cookie (`Max-Age=0`), and the response is a `302` redirect to `/cookies`. # Example `DELETE /cookies?foo&theme` expires both cookies and redirects.

## Query parameters

- `` (object, required) - Cookie names to delete

## Responses

- `302` - Redirects to /cookies after deleting cookies

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: rucho
  version: 1.6.0
servers:
  - url: https://rucho.org
    description: Production (EKS us-east-2, behind Kong)
paths:
  /cookies:
    delete:
      tags:
        - crate::routes::cookies
      summary: Deletes cookies via the `DELETE` method on `/cookies` — RESTful
        symmetry with
      description: >-
        `GET /cookies/delete`. Each query-parameter name expires the matching
        cookie

        (`Max-Age=0`), and the response is a `302` redirect to `/cookies`.


        # Example


        `DELETE /cookies?foo&theme` expires both cookies and redirects.
      operationId: delete_cookies_method_handler
      parameters:
        - name: ""
          in: query
          description: Cookie names to delete
          required: true
          schema:
            type: object
            additionalProperties:
              type: string
      responses:
        "302":
          description: Redirects to /cookies after deleting cookies
```
