Unsubscribe from a Channel
youtube_unsubscribeRemove a YouTube channel subscription for the authenticated user. Requires the subscription resource ID from youtube_list_subscriptions and explicit confirmation to execute.
Instructions
Remove a subscription for the authenticated user, using the YouTube Data API v3 subscriptions.delete endpoint.
IMPORTANT: This tool takes the subscription resource ID (the id field returned by youtube_list_subscriptions), not the channel's channelId. To find the correct ID, call youtube_list_subscriptions first and note the id field on each subscription item.
This action is destructive and irreversible — you must pass confirm: true to proceed. Without it the tool refuses and explains what would happen.
Args:
subscriptionId(required) — The subscription resource ID to delete (e.g.,"ABCDefgh1234…"). Obtained from theidfield of ayoutube_list_subscriptionsresult item.confirm— Must betrueto actually perform the deletion. Default:false(dry-run refusal).
Returns: A short confirmation message on success. The YouTube API returns HTTP 204 (no body) on success, so no structured resource is returned.
Examples:
Dry run (safe, returns an error explaining what would happen):
{ "subscriptionId": "ABCDefgh1234" }Actually unsubscribe:
{ "subscriptionId": "ABCDefgh1234", "confirm": true }
Common Errors:
404 subscriptionNotFound— No subscription with the given ID exists for the authenticated user. Confirm the ID comes fromyoutube_list_subscriptions, not a channel ID.403 forbidden— Insufficient permissions or the subscription belongs to a different account; check scopes.401 / 403 authError— Credentials missing or expired; re-runnpm run auth.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| subscriptionId | Yes | The subscription resource ID to delete. This is the "id" field from youtube_list_subscriptions — NOT a channelId. | |
| confirm | No | Must be true to execute the deletion. Default false causes a safe refusal explaining the action. |