Delete a stream
Code Mode: praxis.media.streams.delete
HTTP: DELETE /media/v1/streams/{stream_id}
Delete a stream and its event log for good; only an idle or disabled stream can be deleted, so stop a live one first with streams.disable.create. The stream leaves the list at once and gives back any slot it held. Recordings it already made are Media assets and stay. Deleting is not undone and the id is not reused. Example: DELETE /media/v1/streams/mst_zpnqd7a2kxwg3vhr5tj4bfm6ec.
签名
praxis.media.streams.delete(args:{path:{/** e.g. "mst_zpnqd7a2kxwg3vhr5tj4bfm6ec" */ stream_id:string}}):Promise<{/** The id of the deleted stream; it is not reused. e.g. "mst_zpnqd7a2kxwg3vhr5tj4bfm6ec" */ id:string;/** Always media.stream. e.g. "media.stream" */ object:"media.stream";/** Always true. */ deleted:boolean}>;参数
| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
| stream_id | path | string | 是 | The stream’s id, the id field returned by streams.create or streams.list (mst_ followed by 26 lowercase base32 characters); a stream of another organization answers 404. |
响应
| 状态码 | 内容类型 | 说明 |
|---|---|---|
| 200 | application/json | The stream is deleted. |
| 404 | application/json | No stream with this id in your organization, or Media Streams is not released for it. |
| 409 | application/json | The stream is waiting or active. Call streams.disable.create first, then delete it. |