---
title: "Clear command history"
method: DELETE
path: "/terminal/command_history/{hostId}"
tags: ["Terminal"]
---

# Clear command history

`DELETE /terminal/command_history/{hostId}`

Clears the entire command history for a specific host.

## Path parameters

- `hostId` integer, required

## Response `200`

Command history cleared successfully.

## Other responses

- `400` — Invalid request.
- `500` — Failed to clear history.

---

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