---
title: "Delete a specific command from history"
method: POST
path: "/terminal/command_history/delete"
tags: ["Terminal"]
---

# Delete a specific command from history

`POST /terminal/command_history/delete`

Deletes a specific command from the history of a host.

## Request body

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

## Response `200`

Command deleted successfully.

## Other responses

- `400` — Missing required parameters.
- `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)
