public sealed class DeleteDocumentRequest : IMessage<DeleteDocumentRequest>, IEquatable<DeleteDocumentRequest>, IDeepCloneable<DeleteDocumentRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1beta API class DeleteDocumentRequest.
Request message for
[DocumentService.DeleteDocument][google.cloud.discoveryengine.v1beta.DocumentService.DeleteDocument]
method.
Required. Full resource name of
[Document][google.cloud.discoveryengine.v1beta.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.v1beta.Document], regardless of
whether or not it exists, a PERMISSION_DENIED error is returned.
If the [Document][google.cloud.discoveryengine.v1beta.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-07 UTC."],[[["\u003cp\u003eThis documentation details the \u003ccode\u003eDeleteDocumentRequest\u003c/code\u003e class within the Google Cloud Discovery Engine v1beta API, which is used to request the deletion of a document.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDeleteDocumentRequest\u003c/code\u003e class implements multiple interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, indicating its capabilities for message handling, equality checks, deep cloning, and buffered operations.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties like \u003ccode\u003eDocumentName\u003c/code\u003e (typed view) and \u003ccode\u003eName\u003c/code\u003e (string), with \u003ccode\u003eName\u003c/code\u003e being a required field specifying the full resource path of the document to be deleted.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDeleteDocumentRequest\u003c/code\u003e class has two constructors, a default one, and another one taking a \u003ccode\u003eDeleteDocumentRequest\u003c/code\u003e object as parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe class is found in the namespace \u003ccode\u003eGoogle.Cloud.DiscoveryEngine.V1Beta\u003c/code\u003e and is part of the \u003ccode\u003eGoogle.Cloud.DiscoveryEngine.V1Beta.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,[]]