You need to enable JavaScript to run this app.
导航

销毁发布资源

最近更新时间2023.05.12 11:04:39

首次发布时间2022.08.30 14:30:09

调用此接口,销毁指定的发布资源。
如果调用成功,指定的发布资源和相同 StreamID 的订阅资源都会被销毁,并且,已经通过 PeerConnection 与此订阅资源建立的连接会断开。

发起请求

请求方法

DELETE {发布资源 URL}

其中,发布资源 URL 是:在创建发布资源时,收到的成功响应中的 Location

请求示例

curl --location --request DELETE '<location>'

响应结果

成功响应示例

参数响应示例
Status200 OK

异常响应示例

参数响应示例
Status404 Not Found
Header.Content-Typetext/plain
BodyResource Not Exist

关于其他的状态码,参考 状态码