delete_caption
Remove a caption track from a YouTube video by providing its track ID.
Instructions
Delete a caption track by ID. Use list_captions to find the track ID first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caption_id | Yes | Caption track ID to delete. |
Implementation Reference
- src/youtube/client.ts:292-296 (helper)YouTubeClient method that sends a DELETE request to the YouTube Data API v3 /captions endpoint with the caption ID.
deleteCaption(captionId: string): Promise<void> { const url = new URL(`${DATA_API}/captions`); url.searchParams.set("id", captionId); return this.request<void>(url.toString(), { method: "DELETE" }); }