YouTube에서 Shorts 동영상의 조회수를 집계하는 방식에 맞게 Data API를 업데이트하고 있습니다.
자세히 알아보기
PlaylistItems: delete
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
재생목록의 항목을 삭제합니다.
할당량 영향: 이 메서드를 호출하면 할당량 비용이 50단위가 됩니다.
일반적인 사용 사례
요청
HTTP 요청
DELETE https://www.googleapis.com/youtube/v3/playlistItems
승인
이 요청에는 다음 범위 중 하나 이상에 대한 승인이 필요합니다. 인증 및 승인에 대해 자세히 알아보려면 OAuth 2.0 승인 구현을 참고하세요.
범위 |
https://www.googleapis.com/auth/youtubepartner |
https://www.googleapis.com/auth/youtube |
https://www.googleapis.com/auth/youtube.force-ssl |
매개변수
다음 표에는 이 쿼리가 지원하는 매개변수가 나와 있습니다. 나열된 모든 매개변수는 쿼리 매개변수입니다.
매개변수 |
필수 매개변수 |
id |
string
id 매개변수는 삭제 중인 재생목록 항목의 YouTube 재생목록 항목 ID를 지정합니다. playlistItem 리소스에서 id 속성은 재생목록 항목의 ID를 지정합니다. |
선택적 매개변수 |
onBehalfOfContentOwner |
string
참고: onBehalfOfContentOwner 매개변수는 YouTube 콘텐츠 파트너 전용이며 적절하게 승인된 요청에서만 사용할 수 있습니다.
이 매개변수는 여러 YouTube 채널을 소유하고 관리하는 YouTube 콘텐츠 파트너를 위해 설계되었습니다. 이를 통해 콘텐츠 소유자와 제휴된 사용자는 한 번 인증한 후 각 개별 채널의 인증 사용자 인증 정보를 제공하지 않고도 콘텐츠 소유자의 모든 동영상 및 채널 데이터에 액세스하고 이를 관리할 수 있습니다.
이 매개변수가 있으면 값이 콘텐츠 소유자를 식별하고 요청의 승인 사용자 인증 정보는 해당 콘텐츠 소유자를 대신하여 작업할 권한이 있는 YouTube 사용자를 식별합니다. 사용자가 인증하는 계정은 YouTube 스튜디오 설정에서 지정된 콘텐츠 소유자에 연결되어 있어야 합니다. |
요청 본문
이 메소드를 호출할 때 요청 본문을 제공하지 마세요.
응답
이 메서드는 요청에 성공하면 HTTP 204 No Content
상태 코드를 반환합니다.
오류
다음 표에는 이 메서드 호출에 대한 응답으로 API에서 반환할 수 있는 오류 메시지가 나와 있습니다. 자세한 내용은 YouTube Data API - 오류를 참고하세요.
오류 유형 |
오류 세부정보 |
설명 |
forbidden (403) |
playlistItemsNotAccessible |
지정된 재생목록 항목을 삭제할 수 있도록 요청이 제대로 인증되지 않았습니다. |
notFound (404) |
playlistItemNotFound |
요청의 id 매개변수로 식별된 재생목록 항목을 찾을 수 없습니다. |
invalidValue (400) |
playlistOperationUnsupported |
API는 지정된 재생목록에서 동영상을 삭제하는 기능을 지원하지 않습니다. 예를 들어 업로드한 동영상 재생목록에서는 동영상을 삭제할 수 없습니다. |
사용해 보기
APIs Explorer를 사용하여 이 API를 호출하고 API 요청 및 응답을 확인합니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-11-19(UTC)
[null,null,["최종 업데이트: 2024-11-19(UTC)"],[],[],null,["# PlaylistItems: delete\n\nDeletes a playlist item.\n\n**Quota impact:** A call to this method has a [quota cost](/youtube/v3/getting-started#quota) of 50 units.\n\nCommon use cases\n----------------\n\nThe list below shows common use cases for this method. Hover over a use case to see its description, or click on a use case to load sample parameter values in the APIs Explorer. You can open the [fullscreen APIs Explorer](#) to see code samples that dynamically update to reflect the parameter values entered in the Explorer.\n\nThe table below shows common use cases for this method. You can click on a use case name to load sample parameter values in the APIs Explorer. Or you can see code samples for a use case in the fullscreen APIs Explorer by clicking on the code icon below a use case name. In the fullscreen UI, you can update parameter and property values and the code samples will dynamically update to reflect the values you enter. \nThis method has one common use case, which is described below. The buttons below the description populate the APIs Explorer with sample values or open the fullscreen APIs Explorer to show code samples that use those values. The code samples also dynamically update if you change the values.\n\n\u003cbr /\u003e\n\nRequest\n-------\n\n### HTTP request\n\n```\nDELETE https://www.googleapis.com/youtube/v3/playlistItems\n```\n\n### Authorization\n\nThis request requires authorization with at least one of the following scopes. To read more about authentication and authorization, see [Implementing OAuth 2.0 authorization](/youtube/v3/guides/authentication).\n\n| Scope |\n|-----------------------------------------------------|\n| `https://www.googleapis.com/auth/youtubepartner` |\n| `https://www.googleapis.com/auth/youtube` |\n| `https://www.googleapis.com/auth/youtube.force-ssl` |\n\n### Parameters\n\nThe following table lists the parameters that this query supports. All of the parameters listed are query parameters.\n\n| Parameters ||\n|--------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| **Required parameters** |||\n| `id` | `string` 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. |\n| **Optional parameters** |||\n| `onBehalfOfContentOwner` | `string` **Note:** The **onBehalfOfContentOwner** parameter is intended exclusively for YouTube content partners and can only be used in a properly [authorized request](/youtube/v3/guides/authentication). This parameter is designed for YouTube content partners that own and manage many different YouTube channels. It enables users affiliated with the content owner to authenticate once and then be able to access and manage all of the content owner's video and channel data, without having to provide authentication credentials for each individual channel. When the parameter is present, its value identifies a content owner, and the request's authorization credentials identify a YouTube user who is authorized to act on behalf of that content owner. The account that the user authenticates with must be [linked to the specified content owner](https://support.google.com/youtube/answer/4524878) in the YouTube Creator Studio settings. |\n\n### Request body\n\nDo not provide a request body when calling this method.\n\nResponse\n--------\n\nIf successful, this method returns an HTTP `204 No Content` status code.\n\nErrors\n------\n\nThe following table identifies error messages that the API could return in response to a call to this method. For more details, see [YouTube Data API - Errors](/youtube/v3/docs/errors).\n\n| Error type | Error detail | Description |\n|----------------------|--------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `forbidden (403)` | `playlistItemsNotAccessible` | The request is not properly authorized to delete the specified playlist item. |\n| `notFound (404)` | `playlistItemNotFound` | The playlist item identified with the request's `id` parameter cannot be found. |\n| `invalidValue (400)` | `playlistOperationUnsupported` | The API does not support the ability to delete videos from the specified playlist. For example, you can't delete a video from your uploaded videos playlist. |\n\nTry it!\n-------\n\nUse the APIs Explorer to call this API and see the API request and response."]]