Method: users.drafts.delete
فورا و برای همیشه پیش نویس مشخص شده را حذف می کند. به سادگی آن را سطل زباله نمی کند.
درخواست HTTP
DELETE https://gmail.googleapis.com/gmail/v1/users/{userId}/drafts/{id}
URL از دستور GRPC Transcoding استفاده می کند.
پارامترهای مسیر
مولفه های |
---|
userId | string آدرس ایمیل کاربر. مقدار ویژه me می تواند برای نشان دادن کاربر تأیید شده استفاده شود. |
id | string شناسه پیش نویس برای حذف. |
درخواست بدن
بدنه درخواست باید خالی باشد.
بدن پاسخگو
در صورت موفقیت آمیز بودن، بدنه پاسخ خالی است.
محدوده مجوز
به یکی از حوزه های OAuth زیر نیاز دارد:
-
https://mail.google.com/
-
https://www.googleapis.com/auth/gmail.modify
-
https://www.googleapis.com/auth/gmail.compose
برای اطلاعات بیشتر، به راهنمای مجوز مراجعه کنید.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-10-30 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-10-30 بهوقت ساعت هماهنگ جهانی."],[[["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"]]