Skip to main content
Skip table of contents

DeleteStream. Strеam. Mediaserver

Termination of stream processing and removal from the server. It is possible to delete DVR recordings as well, however, the deletion of DVR may be blocked at the configuration level of the media server, see Mediaserver/Configuration/Server (mediaserver.ini).

The stream configuration file is not deleted from the server, but renamed. It can be restored manually if needed.

DELETE /api/streams/{stream-uid}/
Body
stream-uidoptional
uid
Unique identifier of the stream {@hint:uid}.
erase_dvrrequired
bool
Indicates what actions should be taken with DVR recordings. By default, the value is false.
tokenrequired
string
API request authorization token. See Mediaserver/Web API/Authorization/CreateApiToken.
Response
200
Returns the UID of the deleted stream.
JSON
{
                "uid": "0a20f93c-d370-4107-8548-97bb64c53ed2"
            }
404
The stream with this UID was not found.
403
Authorization error. Invalid or missing API access token. See Mediaserver/Web API/Authorization/CreateApiToken.
Example
JSON
curl -k --location --request DELETE 'https://localhost:8080/api/streams/{stream-uid}/?erase_dvr=bool&token=string'
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.