Method: people.deleteContact
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-08-06 UTC
[null,null,["อัปเดตล่าสุด 2024-08-06 UTC"],[[["\u003cp\u003eThis API endpoint allows for the deletion of a contact person's information, excluding any associated non-contact data.\u003c/p\u003e\n"],["\u003cp\u003eRequests to modify data for the same user should be sent one after the other to prevent performance issues.\u003c/p\u003e\n"],["\u003cp\u003eThe endpoint uses a DELETE request with the resource name of the contact specified as a path parameter.\u003c/p\u003e\n"],["\u003cp\u003eAn empty request body is required, and a successful deletion will result in an empty response body.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires the \u003ccode\u003ehttps://www.googleapis.com/auth/contacts\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],["This document details the process of deleting a contact using the Google People API. A `DELETE` request is sent to `https://people.googleapis.com/v1/{resourceName=people/*}:deleteContact`, specifying the contact's `resourceName` in the URL's path parameter. The request body must be empty, and successful deletion results in an empty response body. Requests must be sequential. Authorization requires the `https://www.googleapis.com/auth/contacts` OAuth scope. Non-contact data remains untouched.\n"],null,["# Method: people.deleteContact\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_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 a contact person. Any non-contact data will not be deleted.\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=people/*}:deleteContact`\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 to delete. |\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)."]]