Method: sessions.delete
지정된 세션을 삭제합니다.
세션이 없거나 사용자가 소유하지 않은 경우 NOT_FOUND
오류가 반환됩니다.
빈 응답은 삭제가 완료되었음을 나타냅니다.
HTTP 요청
DELETE https://photospicker.googleapis.com/v1/sessions/{sessionId}
URL은 gRPC 트랜스코딩 문법을 사용합니다.
경로 매개변수
매개변수 |
sessionId |
string
필수입니다. 삭제할 세션의 Google 생성 식별자입니다.
|
응답 본문
성공하면 응답 본문은 빈 JSON 객체입니다.
승인 범위
다음 OAuth 범위가 필요합니다.
https://www.googleapis.com/auth/photospicker.mediaitems.readonly
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-03-10(UTC)
[null,null,["최종 업데이트: 2025-03-10(UTC)"],[[["Deletes the specified photo session if it exists and is owned by the user."],["Returns a `NOT_FOUND` error if the session doesn't exist or isn't owned by the user, and an empty response upon successful deletion."],["Requires authorization with the `https://www.googleapis.com/auth/photospicker.mediaitems.readonly` scope."],["The request should be a `DELETE` request to `https://photospicker.googleapis.com/v1/sessions/{sessionId}` with an empty body, where `{sessionId}` is the session ID."]]],["The provided content outlines the process for deleting a session via an HTTP `DELETE` request to a specific URL. The `sessionId` is a mandatory path parameter. The request body must be empty. A successful deletion results in an empty response body; a `NOT_FOUND` error indicates the session's absence or incorrect ownership. This operation necessitates the `https://www.googleapis.com/auth/photospicker.mediaitems.readonly` OAuth scope for authorization.\n"]]