---
title: "Delete command from history"
method: DELETE
path: "/host/command-history"
tags: ["SSH"]
---

# Delete command from history

`DELETE /host/command-history`

Deletes a specific command from the history of a host.

## Request body

- object
  - `hostId` integer
  - `command` string

## Response `200`

Command deleted from history.

## Other responses

- `400` — Invalid data.
- `500` — Failed to delete command.

---

[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)
