public sealed class DeleteDocumentRequest : IMessage<DeleteDocumentRequest>, IEquatable<DeleteDocumentRequest>, IDeepCloneable<DeleteDocumentRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Dialogflow v2 API class DeleteDocumentRequest.
Request message for
[Documents.DeleteDocument][google.cloud.dialogflow.v2.Documents.DeleteDocument].
Required. The name of the document to delete.
Format: projects/<Project ID>/locations/<Location
ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>.
[[["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-09-04 UTC."],[[["\u003cp\u003eThe latest version available for the \u003ccode\u003eDeleteDocumentRequest\u003c/code\u003e class in the Google Cloud Dialogflow v2 API is 4.26.0.\u003c/p\u003e\n"],["\u003cp\u003eThis document provides reference material for the \u003ccode\u003eDeleteDocumentRequest\u003c/code\u003e class, which is used to delete a document within the Dialogflow platform.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDeleteDocumentRequest\u003c/code\u003e class implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDeleteDocumentRequest\u003c/code\u003e class contains two properties \u003ccode\u003eDocumentName\u003c/code\u003e, which is a typed view of the name, and \u003ccode\u003eName\u003c/code\u003e, which is the string version, both are required to contain the name of the document you wish to delete.\u003c/p\u003e\n"],["\u003cp\u003eThere is a range of older versions of the document available, from 4.25.0 down to 3.2.0, all accessible with their own associated documentation.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Dialogflow v2 API - Class DeleteDocumentRequest (4.26.0)\n\nVersion latestkeyboard_arrow_down\n\n- [4.26.0 (latest)](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DeleteDocumentRequest)\n- [4.25.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.25.0/Google.Cloud.Dialogflow.V2.DeleteDocumentRequest)\n- [4.24.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.24.0/Google.Cloud.Dialogflow.V2.DeleteDocumentRequest)\n- [4.23.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.23.0/Google.Cloud.Dialogflow.V2.DeleteDocumentRequest)\n- [4.22.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.22.0/Google.Cloud.Dialogflow.V2.DeleteDocumentRequest)\n- [4.21.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.21.0/Google.Cloud.Dialogflow.V2.DeleteDocumentRequest)\n- [4.20.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.20.0/Google.Cloud.Dialogflow.V2.DeleteDocumentRequest)\n- [4.19.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.19.0/Google.Cloud.Dialogflow.V2.DeleteDocumentRequest)\n- [4.18.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.18.0/Google.Cloud.Dialogflow.V2.DeleteDocumentRequest)\n- [4.17.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.17.0/Google.Cloud.Dialogflow.V2.DeleteDocumentRequest)\n- [4.16.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.16.0/Google.Cloud.Dialogflow.V2.DeleteDocumentRequest)\n- [4.15.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.15.0/Google.Cloud.Dialogflow.V2.DeleteDocumentRequest)\n- [4.14.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.14.0/Google.Cloud.Dialogflow.V2.DeleteDocumentRequest)\n- [4.13.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.13.0/Google.Cloud.Dialogflow.V2.DeleteDocumentRequest)\n- [4.12.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.12.0/Google.Cloud.Dialogflow.V2.DeleteDocumentRequest)\n- [4.11.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.11.0/Google.Cloud.Dialogflow.V2.DeleteDocumentRequest)\n- [4.10.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.10.0/Google.Cloud.Dialogflow.V2.DeleteDocumentRequest)\n- [4.9.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.9.0/Google.Cloud.Dialogflow.V2.DeleteDocumentRequest)\n- [4.8.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.8.0/Google.Cloud.Dialogflow.V2.DeleteDocumentRequest)\n- [4.7.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.7.0/Google.Cloud.Dialogflow.V2.DeleteDocumentRequest)\n- [4.6.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.6.0/Google.Cloud.Dialogflow.V2.DeleteDocumentRequest)\n- [4.5.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.5.0/Google.Cloud.Dialogflow.V2.DeleteDocumentRequest)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.4.0/Google.Cloud.Dialogflow.V2.DeleteDocumentRequest)\n- [4.3.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.3.0/Google.Cloud.Dialogflow.V2.DeleteDocumentRequest)\n- [4.2.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.2.0/Google.Cloud.Dialogflow.V2.DeleteDocumentRequest)\n- [4.1.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.1.0/Google.Cloud.Dialogflow.V2.DeleteDocumentRequest)\n- [4.0.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/4.0.0/Google.Cloud.Dialogflow.V2.DeleteDocumentRequest)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/3.11.0/Google.Cloud.Dialogflow.V2.DeleteDocumentRequest)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/3.10.0/Google.Cloud.Dialogflow.V2.DeleteDocumentRequest)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/3.9.0/Google.Cloud.Dialogflow.V2.DeleteDocumentRequest)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/3.8.0/Google.Cloud.Dialogflow.V2.DeleteDocumentRequest)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/3.7.0/Google.Cloud.Dialogflow.V2.DeleteDocumentRequest)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/3.6.0/Google.Cloud.Dialogflow.V2.DeleteDocumentRequest)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/3.5.0/Google.Cloud.Dialogflow.V2.DeleteDocumentRequest)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/3.4.0/Google.Cloud.Dialogflow.V2.DeleteDocumentRequest)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/3.3.0/Google.Cloud.Dialogflow.V2.DeleteDocumentRequest)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/3.2.0/Google.Cloud.Dialogflow.V2.DeleteDocumentRequest) \n\n public sealed class DeleteDocumentRequest : IMessage\u003cDeleteDocumentRequest\u003e, IEquatable\u003cDeleteDocumentRequest\u003e, IDeepCloneable\u003cDeleteDocumentRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Dialogflow v2 API class DeleteDocumentRequest.\n\nRequest message for\n\\[Documents.DeleteDocument\\]\\[google.cloud.dialogflow.v2.Documents.DeleteDocument\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e DeleteDocumentRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[DeleteDocumentRequest](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DeleteDocumentRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DeleteDocumentRequest](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DeleteDocumentRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[DeleteDocumentRequest](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DeleteDocumentRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Dialogflow.V2](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.Dialogflow.V2.dll\n\nConstructors\n------------\n\n### DeleteDocumentRequest()\n\n public DeleteDocumentRequest()\n\n### DeleteDocumentRequest(DeleteDocumentRequest)\n\n public DeleteDocumentRequest(DeleteDocumentRequest other)\n\nProperties\n----------\n\n### DocumentName\n\n public DocumentName DocumentName { get; set; }\n\n[DocumentName](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DocumentName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.DeleteDocumentRequest#Google_Cloud_Dialogflow_V2_DeleteDocumentRequest_Name) resource name property.\n\n### Name\n\n public string Name { get; set; }\n\nRequired. The name of the document to delete.\nFormat: `projects/\u003cProject ID\u003e/locations/\u003cLocation\nID\u003e/knowledgeBases/\u003cKnowledge Base ID\u003e/documents/\u003cDocument ID\u003e`."]]