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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis page provides documentation for the \u003ccode\u003eDeleteDocumentRequest\u003c/code\u003e class within the Google Cloud Discovery Engine v1 API.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDeleteDocumentRequest\u003c/code\u003e is a request message used for the \u003ccode\u003eDocumentService.DeleteDocument\u003c/code\u003e method to delete a specified document.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDeleteDocumentRequest\u003c/code\u003e class implements several interfaces, including \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 latest version of this document is version 1.6.0, and there are versions available between 1.0.0-beta06 and 1.5.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDeleteDocumentRequest\u003c/code\u003e class contains properties for setting the name of the document and the \u003ccode\u003eDocumentName\u003c/code\u003e view.\u003c/p\u003e\n"]]],[],null,[]]