# Close terminal

`DELETE /v1/projects/{project}/environments/{environment}/terminals/{terminal}`, operation `environments.CloseTerminal`

Ends an interactive shell session and terminates its process group.

For environments owned by an agent, also requires agents.agents.send on that agent.

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `project` | path | Yes | `string` | The project's ID. |
| `environment` | path | Yes | `string` | The environment's ID. |
| `terminal` | path | Yes | `string` | The terminal session ID. |

## Responses

### 204

No Content

### default

Error

Base URL: `https://api.kosem.ai`. See [API conventions](https://docs.kosem.ai/reference/api-conventions.md) for authentication, pagination and errors, and [https://docs.kosem.ai/openapi.yaml](https://docs.kosem.ai/openapi.yaml) for the full OpenAPI document.