Method: users.drafts.delete
Belirtilen taslağı hemen ve kalıcı olarak siler. Çöp kutusuna göndermekle kalmaz.
HTTP isteği
DELETE https://gmail.googleapis.com/gmail/v1/users/{userId}/drafts/{id}
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
userId |
string
Kullanıcının e-posta adresi. me özel değeri, kimliği doğrulanmış kullanıcıyı belirtmek için kullanılabilir.
|
id |
string
Silinecek taslağın kimliği.
|
İstek içeriği
İstek metni boş olmalıdır.
Yanıt gövdesi
Başarılı olursa yanıt gövdesi boş olur.
Yetkilendirme kapsamları
Aşağıdaki OAuth kapsamlarından birini gerektirir:
https://mail.google.com/
https://www.googleapis.com/auth/gmail.modify
https://www.googleapis.com/auth/gmail.compose
Daha fazla bilgi için Yetkilendirme kılavuzuna göz atın.
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: 2024-09-05 UTC.
[null,null,["Son güncelleme tarihi: 2024-09-05 UTC."],[[["Permanently deletes the specified draft, distinguished from simply trashing it."],["Employs an HTTP DELETE request to `https://gmail.googleapis.com/gmail/v1/users/{userId}/drafts/{id}` with path parameters for user and draft ID."],["Requires an empty request body and returns an empty response body upon successful deletion."],["Needs authorization with specific OAuth scopes including `https://mail.google.com/`, `https://www.googleapis.com/auth/gmail.modify`, or `https://www.googleapis.com/auth/gmail.compose`."]]],["This document outlines the process for permanently deleting a Gmail draft via an HTTP DELETE request. The endpoint is `https://gmail.googleapis.com/gmail/v1/users/{userId}/drafts/{id}`, with `userId` and `id` as path parameters. `userId` represents the user's email, or `me`, while `id` is the draft's ID. The request body must be empty, and a successful response also returns an empty body. Authorization requires one of three specified OAuth scopes.\n"]]