---
title: "Delete all data on the stream."
method: POST
path: "/streams/{id}/clear"
tags: ["Stream Operations"]
---

# Delete all data on the stream.

`POST /streams/{id}/clear`

## Request

- Base URL: `https://replace-with-account.api.data.decodable.co/v1alpha2`
- URL: `https://replace-with-account.api.data.decodable.co/v1alpha2/streams/{id}/clear`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/decodable/apis/decodable-data-plane/docs/streams/:id/clear/post.ts> (a function with typed inputs; its response is checked against the schema)

Requires a bearer token for data plane stream clear issued by the control plane API.

## Response `200`

Stream successfully cleared.

## Other responses

- `403`: Access denied: request is not permitted.
- `404`: The requested resource does not exist.
- `default`: An error has occurred.

---

[API](https://skmtc.dev/decodable/apis/decodable-data-plane.md) - [All operations](https://skmtc.dev/decodable/apis/decodable-data-plane/llms.txt) - [OpenAPI document](https://skmtc.dev/decodable/apis/decodable-data-plane/revisions/4303384f9994?raw)
