Method: contactGroups.delete
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2024-08-06 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2024-08-06 UTC."],[[["\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)."]]