delete_video
Permanently delete a YouTube video by providing its ID and confirming the exact title to prevent accidental deletion.
Instructions
Permanently delete a video. Requires confirm_video_title to match the video's current title exactly — guards against deleting the wrong video by ID. Deletion is irreversible.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| video_id | Yes | Video ID to delete. | |
| confirm_video_title | Yes | Exact current title of the video. Must match what YouTube returns to proceed — prevents accidental deletion of the wrong video. |
Implementation Reference
- src/youtube/client.ts:172-176 (helper)client.deleteVideo() — helper that makes a DELETE HTTP request to the YouTube Data API's /videos endpoint with the given video ID.
deleteVideo(videoId: string): Promise<void> { const url = new URL(`${DATA_API}/videos`); url.searchParams.set("id", videoId); return this.request<void>(url.toString(), { method: "DELETE" }); }