Required. Full resource name of Document, such as projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}/branches/{branch}/documents/{document}.
If the caller does not have permission to delete the Document, regardless of whether or not it exists, a PERMISSION_DENIED error is returned.
If the Document to delete does not exist, a NOT_FOUND error is returned.
Request body
The request body must be empty.
Response body
If successful, the response body is an empty JSON object.
[[["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 page details the process for deleting a Document using a DELETE HTTP request.\u003c/p\u003e\n"],["\u003cp\u003eThe request URL structure follows gRPC Transcoding syntax and requires a \u003ccode\u003ename\u003c/code\u003e parameter specifying the full resource path of the Document.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must be empty, and a successful response will also be an empty JSON object.\u003c/p\u003e\n"],["\u003cp\u003eDeleting a Document requires the OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e and the IAM permission \u003ccode\u003ediscoveryengine.documents.delete\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eAttempting to delete a non-existent or inaccessible Document will return either a \u003ccode\u003eNOT_FOUND\u003c/code\u003e or \u003ccode\u003ePERMISSION_DENIED\u003c/code\u003e error, respectively.\u003c/p\u003e\n"]]],[],null,[]]