跳转到内容
EN

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_idpathstring是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.

响应

状态码内容类型说明
200application/jsonThe stream is deleted.
404application/jsonNo stream with this id in your organization, or Media Streams is not released for it.
409application/jsonThe stream is waiting or active. Call streams.disable.create first, then delete it.