---
title: "Remove PTY session"
method: DELETE
path: "/pty/{ptyID}"
---

# Remove PTY session

`DELETE /pty/{ptyID}`

Remove and terminate a specific pseudo-terminal (PTY) session.

## Path parameters

- `ptyID` string, required

## Query parameters

- `directory` string
- `workspace` string

## Response `200`

Session removed

- boolean

## Other responses

- `404` — Not found

---

[API](https://skmtc.net/kaaass/apis/opencode.md) · [All operations](https://skmtc.net/kaaass/apis/opencode/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kaaass/opencode/versions/8bb9a15bd144/schema)
