Streams
Delete Stream
Delete a stream and all its records
DELETE
Delete Stream
Overview
Delete a stream and all its records. This operation is asynchronous and returns immediately. The stream will be marked for deletion and removed in the background.Authentication
This endpoint requires authentication via theS2-Basin header containing your basin name.
Path Parameters
string
required
The name of the stream to delete.Example:
logs/applicationResponse
Returns HTTP 202 Accepted on success. The stream is marked for deletion and will be removed asynchronously. No response body is returned.Example Request
cURL
Stream names in the URL must be properly URL-encoded. For example,
logs/application becomes logs%2Fapplication.Example Response
HTTP 202 Accepted with no body.Error Responses
- 404 Not Found - Stream does not exist
- 400 Bad Request - Invalid stream name
- 403 Forbidden - Insufficient permissions to delete the stream
Important Notes
- The deletion happens asynchronously in the background
- Once a stream is marked for deletion, it cannot be used for reads or writes
- You can create a new stream with the same name after the deletion completes