Method: contactGroups.delete
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-08-06 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 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)."]]