Method: contactGroups.delete
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-08-06。
[null,null,["最后更新时间 (UTC):2024-08-06。"],[[["\u003cp\u003eDelete a contact group owned by the authenticated user, optionally including its contacts.\u003c/p\u003e\n"],["\u003cp\u003eThe request must specify the contact group's resource name and can include a query parameter to also delete contacts within the group.\u003c/p\u003e\n"],["\u003cp\u003eThis operation requires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/contacts\u003c/code\u003e scope.\u003c/p\u003e\n"],["\u003cp\u003eRequests for the same user should be sent sequentially to optimize performance and avoid failures.\u003c/p\u003e\n"]]],["This document details how to delete a contact group via an API. A `DELETE` HTTP request is sent to a specified URL, including the `resourceName` path parameter which identifies the group. An optional `deleteContacts` query parameter, a boolean, can be included to also remove the contacts within the group. The request body must be empty, and a successful response will also have an empty body. The API requires the `https://www.googleapis.com/auth/contacts` authorization scope. Mutate requests for the same user should be sent sequentially.\n"],null,["# Method: contactGroups.delete\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nDelete an existing contact group owned by the authenticated user by specifying a contact group resource name.\n\nMutate requests for the same user should be sent sequentially to avoid increased latency and failures.\n\n### HTTP request\n\n`DELETE https://people.googleapis.com/v1/{resourceName=contactGroups/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------------|----------------------------------------------------------------------|\n| `resourceName` | `string` Required. The resource name of the contact group to delete. |\n\n### Query parameters\n\n| Parameters ||\n|------------------|-------------------------------------------------------------------------------------|\n| `deleteContacts` | `boolean` Optional. Set to true to also delete the contacts in the specified group. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body is empty.\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/contacts`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent)."]]