---
title: "Deletes stream messages"
method: DELETE
path: "/storage/streams/{name}/messages"
tags: ["Messages"]
---

# Deletes stream messages

`DELETE /storage/streams/{name}/messages`

## Request

- Base URL: `https://api.quiva.ai`
- URL: `https://api.quiva.ai/storage/streams/{name}/messages`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-5/docs/storage/streams/:name/messages/delete.ts> (a function with typed inputs; its response is checked against the schema)

Deletes messages from a stream by sequence(seq).

## Path parameters

- `name` string, required

## Query parameters

- `sequences` string, required

## Response `200`

Bad Request

- SuccessMessage
  - `message` string

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not Found
- `500`: Internal Server Error

## Changes

- **2025-07-04** `d566a61279be`: 1 breaking, 1 warning, 7 info
  - added the new required `query` request parameter `sequences`
  - deleted the `query` request parameter `seq`
  - api tag `Messages` added
  - api tag `Streams` removed
  - …5 more
- **2025-06-13** `e4ad9e1ccd66`: 1 warning, 1 info
  - added the new `Success` enum value to the `message` response property for the response status `200`
  - the endpoint scheme security `bearerAuth` was removed from the API
- **2025-05-22** `72fe48f81978`: 3 breaking, 3 info
  - the response's body type changed from no type to `object` for status `200`
  - the response's body type changed from no type to `object` for status `400`
  - the response's body type changed from no type to `object` for status `401`
  - added the optional property `error` to the response with the `400` status
  - …2 more

[Operation history](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-5/changes/storage/streams/:name/messages/delete.md)

---

[API](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-5.md) - [All operations](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-5/llms.txt) - [OpenAPI document](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway-5/revisions/104591eadd10?raw)
