Method: contactGroups.delete
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 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)."]]