

If you are testing this query in the APIs Explorer, you will need to substitute a valid caption track ID for the id parameter value. The request must be authorized using OAuth 2.0. In the request, the id parameter specifies the caption track ID of the track that you are deleting. The list could be used to display a list of caption tracks, using each track's ID as a key.Ĭall the lete method to delete a specific video.

The example has the following steps:įollow the steps above to retrieve a list of caption tracks for a video. This example shows how to delete a caption track. See the captions.insert method's documentation for code samples. If you set the caption resource's snippet.isDraft property to true, the track will not be publicly visible. You should set the sync parameter to true if you are uploading a transcript, which has no time codes, or if you suspect the time codes in your file are incorrect and want YouTube to try to fix them. If you set the sync parameter to true, YouTube will disregard any time codes that are in the uploaded caption file and generate new time codes for the captions. The following additional options are available when uploading a caption track:

