Some products and features are in the process of being renamed. Generative playbook and flow features are also being migrated to a single consolidated console. See the details.
Required. The name of the flow to delete. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>.
Authorization requires the following IAM permission on the specified resource name:
dialogflow.flows.delete
Query parameters
Parameters
force
boolean
This field has no effect for flows with no incoming transitions. For flows with incoming transitions:
If force is set to false, an error will be returned with message indicating the incoming transitions.
If force is set to true, Dialogflow will remove the flow, as well as any transitions to the flow (i.e. [Target flow][EventHandler.target_flow] in event handlers or [Target flow][TransitionRoute.target_flow] in transition routes that point to this flow will be cleared).
Request body
The request body must be empty.
Response body
If successful, the response body is an empty JSON object.
[[["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-01-15 UTC."],[[["This API endpoint deletes a specified flow using a `DELETE` HTTP request to a given service endpoint."],["The `name` parameter, which is a required string representing the flow's resource path, must be supplied to identify the flow to be deleted."],["The optional `force` query parameter determines whether the flow should be deleted even if it has incoming transitions; it must be explicitly set to true."],["The request body for this operation must be empty, and a successful deletion is indicated by an empty JSON object in the response."],["The request requires one of two specific OAuth scopes: `https://www.googleapis.com/auth/cloud-platform` or `https://www.googleapis.com/auth/dialogflow`."]]],[]]