Method: tasklists.delete
ลบรายการงานที่ระบุของผู้ใช้ที่ผ่านการตรวจสอบสิทธิ์ หากในรายการมีงานที่มอบหมายแล้ว ระบบจะลบทั้งงานที่ได้รับมอบหมายและงานต้นฉบับในแพลตฟอร์มของงาน (เอกสาร พื้นที่ใน Chat)
คำขอ HTTP
DELETE https://tasks.googleapis.com/tasks/v1/users/@me/lists/{tasklist}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
tasklist |
string
ตัวระบุรายการงาน
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
หากสำเร็จ เนื้อหาการตอบกลับจะว่างเปล่า
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/tasks
สำหรับข้อมูลเพิ่มเติม โปรดดูที่คู่มือการให้สิทธิ์
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-09-05 UTC
[null,null,["อัปเดตล่าสุด 2024-09-05 UTC"],[[["Deletes the authenticated user's specified task list, including assigned tasks and their originals in Docs and Chat Spaces."],["Uses a DELETE request to `https://tasks.googleapis.com/tasks/v1/users/@me/lists/{tasklist}` with the task list ID as a path parameter."],["Requires an empty request body and returns an empty response body upon success."],["Needs authorization with the `https://www.googleapis.com/auth/tasks` OAuth scope."]]],["This document details the process of deleting a user's task list via an HTTP DELETE request. The request, made to `https://tasks.googleapis.com/tasks/v1/users/@me/lists/{tasklist}`, uses the `tasklist` path parameter to identify the list. The request body must be empty. A successful operation returns an empty response body. Deleting a list with assigned tasks deletes both the assigned and original tasks. The `https://www.googleapis.com/auth/tasks` authorization scope is required.\n"]]