View as Markdown
YouTube Data icon

YouTube Data ACTION

Delete Playlist Items

Deletes a playlist item. See the documentation for more information
  • Action
  • Writes data
  • Destructive
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's YouTube Data account once, then configure and run Delete Playlist Items from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "youtube_data_api-delete-playlist-items",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    youtube_data_api: { authProvisionId: "apn_xxxxxxx" },
    playlistId: "Playlist ID",
    videoIds: ["Video IDs"],
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Delete Playlist Items inputs
Property Type Description
playlistId Playlist ID string
Add items to the selected playlist. E.g. PLJswo-CV0rmlwxKysf33cUnyBp8JztH0k
Required Dynamic
videoIds Video IDs string[]
Array of identifiers of the videos to be removed from the playlist. E.g. o_U1CQn68VM
Required Dynamic
onBehalfOfContentOwner On Behalf Of Content Owner string

This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.

The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.

Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
youtube_data_api-delete-playlist-items
Version
0.0.3
App
YouTube Data
Authentication
OAuth
Read-only
No
Destructive
Yes
Open world
Yes