Requests deletion of aPhoneNumber. ThePhoneNumberis moved into theDELETE_REQUESTEDstate immediately, and is deleted approximately 30 days later. This method may only be called on aPhoneNumberin theACTIVEstate.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-27 UTC."],[[["\u003cp\u003eThis document describes how to delete a \u003ccode\u003ePhoneNumber\u003c/code\u003e via an HTTP DELETE request, moving it to a \u003ccode\u003eDELETE_REQUESTED\u003c/code\u003e state before permanent deletion after approximately 30 days.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request URL is in the format \u003ccode\u003eDELETE https://{endpoint}/v2beta1/{name=projects/*/phoneNumbers/*}\u003c/code\u003e, where \u003ccode\u003e{endpoint}\u003c/code\u003e is a supported service endpoint.\u003c/p\u003e\n"],["\u003cp\u003eDeleting a \u003ccode\u003ePhoneNumber\u003c/code\u003e requires the \u003ccode\u003ename\u003c/code\u003e path parameter, representing the unique identifier of the \u003ccode\u003ePhoneNumber\u003c/code\u003e to delete, with specific formatting requirements.\u003c/p\u003e\n"],["\u003cp\u003eThe request body for deleting a \u003ccode\u003ePhoneNumber\u003c/code\u003e must be empty, and the response will contain an instance of \u003ccode\u003ePhoneNumber\u003c/code\u003e if the deletion is successful.\u003c/p\u003e\n"],["\u003cp\u003eDeleting a \u003ccode\u003ePhoneNumber\u003c/code\u003e requires specific authorization, needing either the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/dialogflow\u003c/code\u003e OAuth scopes, and the \u003ccode\u003edialogflow.phoneNumbers.delete\u003c/code\u003e IAM permission.\u003c/p\u003e\n"]]],[],null,["# Method: projects.phoneNumbers.delete\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\nRequests deletion of a `PhoneNumber`. The `PhoneNumber` is moved into the [DELETE_REQUESTED](/dialogflow/es/docs/reference/rest/v2beta1/projects.phoneNumbers#LifecycleState.ENUM_VALUES.DELETE_REQUESTED) state immediately, and is deleted approximately 30 days later. This method may only be called on a `PhoneNumber` in the [ACTIVE](/dialogflow/es/docs/reference/rest/v2beta1/projects.phoneNumbers#LifecycleState.ENUM_VALUES.ACTIVE) state.\n\n### HTTP request\n\n`DELETE https://{endpoint}/v2beta1/{name=projects/*/phoneNumbers/*}`\n\nWhere `{endpoint}` is one of the [supported service endpoints](/dialogflow/es/docs/reference/rest#rest_endpoints).\n\nThe URLs use [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [PhoneNumber](/dialogflow/es/docs/reference/rest/v2beta1/projects.phoneNumbers#PhoneNumber).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n- `\n https://www.googleapis.com/auth/dialogflow`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]