if (currentVideoFile) {
// Remove old file and old torrent
- await video.removeFile(currentVideoFile)
- await currentVideoFile.removeTorrent()
+ await video.removeFileAndTorrent(currentVideoFile)
// Remove the old video file from the array
video.VideoFiles = video.VideoFiles.filter(f => f !== currentVideoFile)