Bulk delete streams

Deletes multiple streams in a single request. A stream cannot be deleted if it is currently in use by a landing page or other entity; the request returns a 400 error in that case.

Requires the stream:write or streams.write permission.

Request

DELETE /stream

Headers

HeaderValue
AuthorizationBearer <token>
Content-Typeapplication/json

Request Body

FieldTypeRequiredDescription
idsarrayYesArray of stream IDs to delete.

Example Request

{
  "ids": [1, 2, 3]
}

Response

Returns a confirmation object on success, or a 400 error if ids is not an array or if one of the streams is in use.

Example Response

{
  "ok": true
}