public sealed class DeleteDocumentRequest : IMessage<DeleteDocumentRequest>, IEquatable<DeleteDocumentRequest>, IDeepCloneable<DeleteDocumentRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1 API class DeleteDocumentRequest.
Request message for
[DocumentService.DeleteDocument][google.cloud.discoveryengine.v1.DocumentService.DeleteDocument]
method.
Required. Full resource name of
[Document][google.cloud.discoveryengine.v1.Document], such as
projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}.
If the caller does not have permission to delete the
[Document][google.cloud.discoveryengine.v1.Document], regardless of whether
or not it exists, a PERMISSION_DENIED error is returned.
If the [Document][google.cloud.discoveryengine.v1.Document] to delete does
not exist, a NOT_FOUND error is returned.
[[["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-08-28 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eDeleteDocumentRequest\u003c/code\u003e class within the Google Cloud Discovery Engine v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDeleteDocumentRequest\u003c/code\u003e class is used to construct request messages for the \u003ccode\u003eDocumentService.DeleteDocument\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this reference documentation is 1.6.0, and it includes previous versions dating back to 1.0.0-beta06.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements multiple interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits members from the \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDeleteDocumentRequest\u003c/code\u003e class has properties for \u003ccode\u003eDocumentName\u003c/code\u003e and \u003ccode\u003eName\u003c/code\u003e, the \u003ccode\u003eName\u003c/code\u003e property represents the full resource name of the document to be deleted.\u003c/p\u003e\n"]]],[],null,["# Discovery Engine v1 API - Class DeleteDocumentRequest (1.9.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.9.0 (latest)](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.DeleteDocumentRequest)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.8.0/Google.Cloud.DiscoveryEngine.V1.DeleteDocumentRequest)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.7.0/Google.Cloud.DiscoveryEngine.V1.DeleteDocumentRequest)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.6.0/Google.Cloud.DiscoveryEngine.V1.DeleteDocumentRequest)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.5.0/Google.Cloud.DiscoveryEngine.V1.DeleteDocumentRequest)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.4.0/Google.Cloud.DiscoveryEngine.V1.DeleteDocumentRequest)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.3.0/Google.Cloud.DiscoveryEngine.V1.DeleteDocumentRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.2.0/Google.Cloud.DiscoveryEngine.V1.DeleteDocumentRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.1.0/Google.Cloud.DiscoveryEngine.V1.DeleteDocumentRequest)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.0.0-beta06/Google.Cloud.DiscoveryEngine.V1.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 Discovery Engine v1 API class DeleteDocumentRequest.\n\nRequest message for\n\\[DocumentService.DeleteDocument\\]\\[google.cloud.discoveryengine.v1.DocumentService.DeleteDocument\\]\nmethod. \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.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.DeleteDocumentRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DeleteDocumentRequest](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.DeleteDocumentRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[DeleteDocumentRequest](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.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.DiscoveryEngine.V1](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.DiscoveryEngine.V1.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.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.DocumentName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.DeleteDocumentRequest#Google_Cloud_DiscoveryEngine_V1_DeleteDocumentRequest_Name) resource name property.\n\n### Name\n\n public string Name { get; set; }\n\nRequired. Full resource name of\n\\[Document\\]\\[google.cloud.discoveryengine.v1.Document\\], such as\n`projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`.\n\nIf the caller does not have permission to delete the\n\\[Document\\]\\[google.cloud.discoveryengine.v1.Document\\], regardless of whether\nor not it exists, a `PERMISSION_DENIED` error is returned.\n\nIf the \\[Document\\]\\[google.cloud.discoveryengine.v1.Document\\] to delete does\nnot exist, a `NOT_FOUND` error is returned."]]