title: Deleting a video from a playlist with YouTube Data API v3
body: <p>I'm building an application with which users can create playlists through drag and drop. I want them to be able to remove videos from a playlist. But I get confused with the docs. </p>
  
  <p>I'm using the youtube api php client library. Keep in mind that the user is logged in.</p>
  
  <pre><code>$youtubeService = new Google_YouTubeService($client);
  $playlistItems = $youtubeService-&gt;playlistItems;
  $deleteVid = $playlistItems-&gt;delete($videocode);
  </code></pre>
  
  <p>And this is the delete function from the client library :</p>
  
  <pre><code> /**
   * Deletes a playlist item. (playlistItems.delete)
   *
   * @param string $id The id parameter specifies the YouTube playlist item ID for the playlist item that is being deleted. In a playlistItem resource, the id property specifies the playlist item's ID.
   * @param array $optParams Optional parameters.
   */
  
  public function delete($id, $optParams = array()) {
    $params = array('id' =&gt; $id);
    $params = array_merge($params, $optParams);
    $data = $this-&gt;__call('delete', array($params));
    return $data;
  }
  </code></pre>
  
  <p>There's nowhere, where I can specify which playlist to delete the video from. Does anyone have an idea how to do this? The other playlistItem functions use a Google_PlaylistItem object as a parameter. But this one only a string for the videocode... So weird, can't figure this one out on my own.</p>
  
  <p>Any help would be much appreciated.</p>