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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"video_id": "<video_id>",
"confirm_video_title": "<confirm_video_title>"
},
"name": "delete_video"
}
}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" }); }