Method: contactGroups.delete
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-08-06 (世界標準時間)。
[null,null,["上次更新時間: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)."]]