---
title: "Delete the chat history stored for a slot"
method: DELETE
path: "/api/v1/slots/{slotId}/history"
tags: ["WhatsApp slots"]
---

# Delete the chat history stored for a slot

`DELETE /api/v1/slots/{slotId}/history`

## Request

- Base URL: `https://otprun.com`
- URL: `https://otprun.com/api/v1/slots/{slotId}/history`
- Auth: HTTP bearer

## Path parameters

- `slotId` integer, required

## Response `200`

OK

- HistoryDeletedOutputBody
  - `deleted` integer, required: Messages removed from the stored chat history

## Other responses

- `403`: Forbidden
- `404`: Not Found
- `422`: Unprocessable Entity
- `500`: Internal Server Error

---

[API](https://skmtc.dev/otprun/apis/otp-run-api.md) · [All operations](https://skmtc.dev/otprun/apis/otp-run-api/llms.txt) · [OpenAPI document](https://skmtc.dev/otprun/apis/otp-run-api/revisions/43d40d5f4050?raw)
