---
title: "Delete a test OIDC login flow"
method: DELETE
path: "/self-service/login/test"
tags: ["frontend"]
---

# Delete a test OIDC login flow

`DELETE /self-service/login/test`

Deletes a dry-run OIDC test login flow. A flow whose debug payload has
been captured requires the HMAC cookie set by the OIDC callback; a flow
still in the initial choose-method state is deletable with just the flow
ID (it carries no PII, and the admin may want to abandon it).

## Query parameters

- `id` string, required

## Headers

- `Cookie` string

## Response `204`

Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 204.

## Other responses

- `400` — errorGeneric
- `403` — errorGeneric
- `404` — errorGeneric
- `default` — errorGeneric

## Changes

- **2026-05-04** `ccfee55a539d` — 1 info
  - endpoint added
- **2025-06-05** `8677d0e6b038` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/ory/apis/ory-kratos/changes/self-service/login/test/delete.md)

---

[API](https://skmtc.dev/ory/apis/ory-kratos.md) · [All operations](https://skmtc.dev/ory/apis/ory-kratos/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ory/ory-kratos/revisions/cc87f41fbd6d/schema)
