Method: sessions.delete
Belirtilen oturumu siler.
Oturum mevcut değilse veya kullanıcıya ait değilse NOT_FOUND
hatası döndürülür.
Boş yanıt, başarılı silme işlemini gösterir.
HTTP isteği
DELETE https://photospicker.googleapis.com/v1/sessions/{sessionId}
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
sessionId |
string
Zorunlu. Silinecek oturum için Google tarafından oluşturulan tanımlayıcı.
|
İstek içeriği
İstek metni boş olmalıdır.
Yanıt gövdesi
Başarılı olursa yanıt metni boş bir JSON nesnesi olur.
Yetkilendirme kapsamları
Aşağıdaki OAuth kapsamını gerektirir:
https://www.googleapis.com/auth/photospicker.mediaitems.readonly
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-03-10 UTC.
[null,null,["Son güncelleme tarihi: 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"]]