Method: tasklists.delete
删除已通过身份验证的用户的指定任务列表。如果该列表包含已分配的任务,那么已分配任务和作业界面(文档、Chat 聊天室)中的原始任务都会被删除。
HTTP 请求
DELETE https://tasks.googleapis.com/tasks/v1/users/@me/lists/{tasklist}
网址采用 gRPC 转码语法。
路径参数
参数 |
tasklist |
string
任务列表标识符。
|
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/tasks
有关详情,请参阅授权指南。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-09-05。
[null,null,["最后更新时间 (UTC):2024-09-05。"],[[["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"]]