Skip to main content
Version: JavaScript SDK v1.1.0

Update & Delete Videos

Updating and deleting videos happens through the video store component. Just like other network APIs, you will need a valid session to perform these operations successfully. In addition, the current session identity must match the identity of the session which originally created the videos.

Update Video

To update video you should use the VideoStore.updateVideo() method as follows:

try {
const updatedVideo = await VideoStore.updateVideo(videoId, {
title: 'New title'
metadata: {
'newKey': 'newValue'
},
tags: ['newTag']
})
} catch (error) {
// Something went wrong
}

Delete Video

To delete video you can use the VideoStore.deleteVideo() method as follows:

try {
const result = await VideoStore.deleteVideo(videoId)
} catch (error) {
// Something went wrong
}