Skip to main content

Delete captions & posters file


This is a potentially destructive API. Files deleted using this API are removed almost-immediately from our servers. When implementing this API, it is recommended to test with a new trial account and verify that there is no incorrect code and only the desired files are getting deleted.

Use the file listing API to get the correct id of the file.

Use this API to delete captions or posters from videos when over-writing or adding new captions.


  • Method: DELETE
  • URL:{videoId}/files/{id}
const fs = require('fs');
const rp = require('request-promise-native');

const authHeader = {
authorization: `Apisecret ${process.env.apisecret}`,

const deleteFile = async (videoId, fileId) => {
const result = await rp({
url: `${videoId}/files/${fileId}`,
method: 'DELETE',
headers: authHeader,
json: true,

// replace with real values
const videoId = '_____';
const fileToDelete = 1000;
deleteFile(videoId, fileToDelete)
.catch((e) => {
if (!e.statusCode) {
throw e;



  • Content-type: application/json
"message": "Deleted"