---
title: "Wait and for a debug session is available. when it is available it is returned and deleted"
method: DELETE
path: "/debugconfig/{debugConfigId}/session"
tags: ["debugsessions"]
---

# Wait and for a debug session is available. when it is available it is returned and deleted

`DELETE /debugconfig/{debugConfigId}/session`

Long-poll and wait for a debug session to arrive.  The squash client will add a debug session to the debug config once a container associated with this  debug config generated a debug event.

## Path parameters

- `debugConfigId` string, required

## Headers

- `X-Timeout` number

## Response `200`

Debug session returned

- DebugSession
  - `url` string
  - `debugConfigId` string, required

## Other responses

- `400` — Invalid ID supplied
- `404` — debug config not found
- `408` — Timeout reached

## Changes

- **2017-08-22** `7d244be4e5ca` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/solo-io/apis/squash-server/changes/debugconfig/:debugConfigId/session/delete.md)

---

[API](https://skmtc.dev/solo-io/apis/squash-server.md) · [All operations](https://skmtc.dev/solo-io/apis/squash-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/solo-io/squash-server/revisions/7d244be4e5ca/schema)
