Delete a place.stream.video record and, on request, the track records its source points at. The content blob and the upload stay, so the record can be published again from the same upload. The caller must be the record's owner or hold livestream.manage from them; the records are deleted with the owner's session.
POST
/xrpc/place.stream.media.deleteVideo
const url = 'https://example.com/xrpc/place.stream.media.deleteVideo';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"uri":"https://example.com","tracks":false}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/xrpc/place.stream.media.deleteVideo \ --header 'Content-Type: application/json' \ --data '{ "uri": "https://example.com", "tracks": false }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
uri
required
string format: uri
tracks
Also delete the video’s track records.
boolean
Responses
Section titled “Responses”Success
Media typeapplication/json
object
deleted
required
Every record deleted, the video first.
Array<string>
Example generated
{ "deleted": [ "https://example.com" ]}Bad Request
