Required. The name of the document to delete. Format: projects/<Project ID>/locations/<Location
ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>.
Authorization requires the following IAM permission on the specified resource name:
dialogflow.documents.delete
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance of Operation.
[[["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 endpoint facilitates the deletion of a specified document, identified by its unique name.\u003c/p\u003e\n"],["\u003cp\u003eThe operation to delete a document is a long-running process that returns an \u003ccode\u003eOperation\u003c/code\u003e with metadata and an empty response upon completion.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request is a \u003ccode\u003eDELETE\u003c/code\u003e operation that follows a specific URL structure including the endpoint, project, location, knowledge base, and document identifiers.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization to delete a document requires the \u003ccode\u003edialogflow.documents.delete\u003c/code\u003e IAM permission and one of the specified OAuth scopes.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must be empty when deleting a document, and a successful response contains an instance of the \u003ccode\u003eOperation\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.knowledgeBases.documents.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\nDeletes the specified document.\n\nThis method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields:\n\n- `metadata`: [KnowledgeOperationMetadata](/dialogflow/es/docs/reference/rest/v2/KnowledgeOperationMetadata)\n- `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)\n\n### HTTP request\n\n`DELETE https://{endpoint}/v2/{name=projects/*/locations/*/knowledgeBases/*/documents/*}`\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 [Operation](/dialogflow/es/docs/reference/rest/v2/projects.locations.operations#Operation).\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)."]]